Bug 3228 – Segfault(mtype.c) multiple empty delegates

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-08-05T00:59:00Z
Last change time
2015-06-09T01:28:06Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-08-05T00:59:15Z
This has to be the funniest looking bug I've ever made. void main(){ (){}; (){}; } ice.d(1): Error: function has no effect in expression (__dgliteral1) <segfault> Probably the same as bug #3227, it's segfaulting in the same place, and doesn't segfault on D2. This smiley variant should compile without errors. But it just segfaults. --- static assert(!is(typeof((){(){} ;-() {};})));
Comment #1 by clugdbug — 2009-08-06T00:01:17Z
*** This issue has been marked as a duplicate of issue 3196 ***