[Issue 5343] New: dmd crashes by the use of template with -g compiler switch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 11 05:09:24 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5343

           Summary: dmd crashes by the use of template with -g compiler
                    switch
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P5
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2010-12-11 05:07:40 PST ---
This code crashes dmd at trunk(r795):
---------------
module main;
import std.typecons;

struct S(E)
{
    immutable E x; // Workaround: Remove immutable.
}
enum A{a,b,c}          // Workaround: alias int A;
alias Tuple!(A) TA;    // Workaround: Remove this line.
alias S!(A) SA;        // Workaround: Exchange of declaration order with TA.

void main()
{
}
---------------

Result:
$ dmd -g -run main
(dmd crashes!)

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


More information about the Digitalmars-d-bugs mailing list