Thread overview
[Issue 3685] New: dmd silently exits on valid code
Jan 07, 2010
nfxjfg@gmail.com
Jan 08, 2010
Matti Niemenmaa
[Issue 3685] Regression(D1 only): DMD silently exits on valid code
Jan 09, 2010
Don
Jan 23, 2010
Walter Bright
Jan 31, 2010
Walter Bright
January 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685

           Summary: dmd silently exits on valid code
           Product: D
           Version: 1.054
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-valid-code, rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: nfxjfg@gmail.com


--- Comment #0 from nfxjfg@gmail.com 2010-01-07 07:20:36 PST ---
There's two things wrong with this:
1. it rejects valid code
2. it doesn't output an error message, it only does exit(1)

//fails to compile with 1.055 (dmd silently exits)
//succeeds with 1.053 (successfully compiles)

void x(T)() {
    static assert(false);
}
template y(T) {
    const bool y = is(typeof( { x!(T)(); } ));
}


static assert(!y!(int));

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 08, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685


Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fawzi@gmx.ch


--- Comment #1 from Matti Niemenmaa <matti.niemenmaa+dbugzilla@iki.fi> 2010-01-08 08:27:28 PST ---
*** Issue 3691 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug@yahoo.com.au
            Summary|dmd silently exits on valid |Regression(D1 only): DMD
                   |code                        |silently exits on valid
                   |                            |code


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-01-08 22:03:58 PST ---
This is a trivial.

D1 template.c, line 3500.
    error("error instantiating");
    if (tinst)
    {   tinst->printInstantiationTrace();
+        if (!global.gag)
        fatal();
    }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 23, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2010-01-23 02:03:34 PST ---
Changeset 351

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3685


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2010-01-30 22:43:51 PST ---
fixed dmd 1.056

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------