[Issue 1808] New: strange dmd StackOverflow with template and new enum in a struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 26 14:48:33 PST 2008


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

           Summary: strange dmd StackOverflow with template and new enum in
                    a struct
           Product: D
           Version: 2.010
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: spam at extrawurst.org


i searched hours to filter this one out and to find the minimal repro (down
below)

[code]

template Foo(T)
{

        struct SomeStruct
        {
                T a;

                enum SomeStruct constant = { 1 };
        }
}

alias Foo!(int).SomeStruct SomeStruct;

[/CODE]


-- 



More information about the Digitalmars-d-bugs mailing list