Bug 5693 – Segfault with address of template struct opCall

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-03-03T17:40:00Z
Last change time
2011-06-26T17:31:37Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-03-03T17:40:53Z
struct Foo { void opCall(T)() {} } void main() { auto x = &Foo(); } DMD 2.052 shows: test.d(5): Error: template test.Foo.opCall(T) does not match any function template declaration test.d(5): Error: template test.Foo.opCall(T) cannot deduce template function from argument types !()() And then dmd crashes. (I am not sure the keyword below is correct.)
Comment #1 by bugzilla — 2011-06-26T17:31:37Z