[Issue 1568] New: Core dump when I invoke a template member function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 10 06:34:13 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1568
Summary: Core dump when I invoke a template member function
Product: DGCC aka GDC
Version: 0.24
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: pop.atry at gmail.com
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');
}
--
More information about the D.gnu
mailing list