www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1808] New: strange dmd StackOverflow with template and new enum in a struct

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: spam 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]


-- 
Jan 26 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1808


spam extrawurst.org changed:

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




------- Comment #1 from spam extrawurst.org  2008-01-27 04:54 -------
seems to be the same thing as in #1800

*** This bug has been marked as a duplicate of 1800 ***


-- 
Jan 27 2008