[Issue 1743] interpret.c:1421 assertion failure on CTFE code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 20 02:16:46 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1743





------- Comment #2 from matti.niemenmaa+dbugzilla at iki.fi  2007-12-20 04:16 -------
Brought it down to the following:

struct PR
{
}
int crRegister_ctfe()
{
        PR pr;
        pr = PR();
        return 0;
}
const i = crRegister_ctfe();

The problem appears to be assigning a struct literal to an already-declared
variable. "PR pr = PR();" works fine.


-- 



More information about the Digitalmars-d-bugs mailing list