[dmd-beta] D 2.059 beta 4
Alex Rønne Petersen
xtzgzorex at gmail.com
Mon Apr 9 02:21:29 PDT 2012
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 <sludwig at outerproduct.org> 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
>> dmd-beta at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
More information about the dmd-beta
mailing list