[Issue 2560] ICE on invoking method that takes ref const struct parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 8 01:17:21 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2560
------- Comment #4 from ludwig at informatik.uni-luebeck.de 2009-03-08 04:17 -------
OK, it seems that the crash does not happen with DMD 2.026 anymore. Output is
instead analogous to the second case in #2561. The test case in #2665 still
crashes though. And another similar code snippet, too:
---
struct S { int x; }
const(S) f(){ return S(0); }
void g(){ int a = f().x; }
---
--
More information about the Digitalmars-d-bugs
mailing list