[Issue 18607] using labelled continue in tuple foreach can break pure and @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 13 17:30:27 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18607
ag0aep6g <ag0aep6g at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |safe
CC| |ag0aep6g at gmail.com
Hardware|x86 |All
Summary|using labelled continue in |using labelled continue in
|tuple foreach can break |tuple foreach can break
|pure |pure and @safe
OS|Windows |All
--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
When returning a pointer, this also breaks @safe:
----
int* test(T...)() @safe pure {
L:foreach(_; T) {
continue L;
return null;
}
}
----
--
More information about the Digitalmars-d-bugs
mailing list