Bug 4469 – ICE(mtype.c) function literals class member
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-07-16T04:24:00Z
Last change time
2010-10-30T06:38:27Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2010-07-16T04:24:49Z
D2 code:
import std.traits: ReturnType;
struct Foo {
ReturnType!({}) bar;
}
void main() {}
dmd 2.047 prints:
test.d(3): Error: delegate test.Foo.__dgliteral1 function literals cannot be class members
ty = 37
Assertion failure: '0' on line 141 in file 'mtype.c'