Shouldn't that say "during compile time"? The term "CTFE" might not be obvious...
Regards, Alex On Mon, Apr 9, 2012 at 9:28 AM, Sönke Ludwig <[email protected]> wrote: > One more regression: > > --- > struct S { > int n[1]; > static S test(){ S ret = void; ret.n[0] = 0; return ret; } > } > > enum Test = S.test(); > --- > > ctfe_uninit.d(3): Error: cannot read uninitialized variable ret.n in ctfe > ctfe_uninit.d(3): Error: variable ctfe_uninit.S.test.ret was uninitialized > and used before set > > There is no hint where the CTFE instantiation that triggered the error is. > > Am 09.04.2012 09:01, schrieb Walter Bright: > >> >> http://ftp.digitalmars.com/dmd2beta.zip >> _______________________________________________ >> dmd-beta mailing list >> [email protected] >> http://lists.puremagic.com/mailman/listinfo/dmd-beta > > > _______________________________________________ > dmd-beta mailing list > [email protected] > http://lists.puremagic.com/mailman/listinfo/dmd-beta _______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
