Bug 1928 – dmd SEGV with too many template parameters
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-03-18T13:20:00Z
Last change time
2015-06-09T01:14:38Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
webmaster
Comments
Comment #0 by webmaster — 2008-03-18T13:20:38Z
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
Comment #1 by clugdbug — 2009-04-01T07:26:52Z
No longer segfaults in DMD2.027.
bug.d(5): Error: template instance bar!(foo,foo) does not match template declara
tion bar(alias E)