← Back to index
|
Original Bugzilla link
Bug 1568 – Core dump when I invoke a template member function
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-10-10T08:34:00Z
Last change time
2015-06-09T05:15:23Z
Keywords
ice-on-invalid-code
Assigned to
dvdfrdmn
Creator
pop.atry
Comments
Comment #0
by pop.atry — 2007-10-10T08:34:12Z
void invoke(alias x, int n)() { x!(n)(); } struct foo { char c; void bar(int n)() { assert(n == 123); assert(c == 'c'); } } unittest { auto f = foo('c'); assert(f.c == 'c'); invoke!(f.bar, 123)(); assert(f.c == 'c'); }
Comment #1
by dvdfrdmn — 2007-10-13T15:08:30Z
Fixed in svn rev 182 / release 0.25. Note that this is invalid code and compiler should be reporting an error.