www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1928] New: dmd SEGV with too many template parameters

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1928

           Summary: dmd SEGV with too many template parameters
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: webmaster villagersonline.com


This one is similar to 1927, but I ran dmd with gdb and it looks to me like it
hits in a different place.

dmd 2.012 Linux (Fedora Core 6 x86_64)

BEGIN CODE
void foo(alias A1, alias A2)() {}

void bar(alias E)()
{
  foo!(E, bar!(foo!(E,E), foo!(E,E)))();
}

void baz()
{
  bar!(baz)();
}
END CODE


-- 
Mar 18 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1928


clugdbug yahoo.com.au changed:

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




------- Comment #1 from clugdbug yahoo.com.au  2009-04-01 07:26 -------
No longer segfaults in DMD2.027.

bug.d(5): Error: template instance bar!(foo,foo) does not match template
declara
tion bar(alias E)


-- 
Apr 01 2009