October 10, 2007 [Issue 1568] New: Core dump when I invoke a template member function | ||||
---|---|---|---|---|
| ||||
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@users.sf.net ReportedBy: pop.atry@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'); } -- |
October 13, 2007 [Issue 1568] Core dump when I invoke a template member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1568 dvdfrdmn@users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Keywords| |ice-on-invalid-code Resolution| |FIXED ------- Comment #1 from dvdfrdmn@users.sf.net 2007-10-13 15:08 ------- Fixed in svn rev 182 / release 0.25. Note that this is invalid code and compiler should be reporting an error. -- |
Copyright © 1999-2021 by the D Language Foundation