Bug 1428 – Segfault on template specialization with delegates and tuples

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-08-17T20:13:00Z
Last change time
2015-06-09T01:14:14Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
reiner.pope

Comments

Comment #0 by reiner.pope — 2007-08-17T20:13:02Z
The following segfaults the compiler. If you remove the tuples, either specialisation, or do a number of other things, the problem disappears. template tuple(T...) { alias T tuple; } template Foo(S : void delegate(tuple!(int))) {} template Foo(S : void delegate(tuple!(int, int))) {} alias Foo!(void delegate(int)) Bar;
Comment #1 by clugdbug — 2009-05-14T06:43:52Z
Fixed DMD2.030 and 1.045.