[Issue 15450] ICE during CTFE of legit function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 15 15:21:51 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15450

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |ag0aep6g at gmail.com
           Severity|normal                      |regression

--- Comment #2 from ag0aep6g at gmail.com ---
2.069.2 gives "Error: cannot interpret <continue> at compile time", which is at
least not an ICE.

git head (6cd7173) gives "core.exception.AssertError at dinterpret.d(1008):
Assertion failure", making this a diagnostic regression.

Further reduced test case:
----
static assert({
    bigone: foreach (l; [0]) continue bigone;
    return true;
}());
----

--


More information about the Digitalmars-d-bugs mailing list