<div dir="ltr">Not sure, but I belive this could be one of reasons:<div><a href="https://issues.dlang.org/show_bug.cgi?id=15989">https://issues.dlang.org/show_bug.cgi?id=15989</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 11, 2017 at 4:54 PM, bauss via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sunday, 8 October 2017 at 04:40:59 UTC, Daniel Kozak wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Up to      2.062  : Failure with output:<br>
-----<br>
onlineapp.d(10): Error: cannot evaluate new Foo("0") at compile time<br>
onlineapp.d(10): Error: cannot evaluate new Foo("1") at compile time<br>
-----<br>
<br>
2.063   to 2.072.2: Success with output: Hello D<br>
Since      2.073.2: Failure with output: onlineapp.d(10): Error: variable<br>
onlineapp.aa : Unable to initialize enum with class or pointer to struct.<br>
Use static const variable instead.<br>
<br>
<a href="https://run.dlang.io/is/mJqayC" rel="noreferrer" target="_blank">https://run.dlang.io/is/mJqayC</a><br>
<br>
On Sun, Oct 8, 2017 at 4:29 AM, bauss via Digitalmars-d < <a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>> wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[...]<br>
</blockquote></blockquote>
<br>
Do you know what the reason for the change is and are there any workarounds to actually declare AA's with classes that can be used at compile-time then?<br>
</blockquote></div><br></div>