[Issue 19482] ICE with extern(C++) and static foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 13 04:04:29 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19482
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timon.gehr at gmx.ch
--- Comment #4 from timon.gehr at gmx.ch ---
The issue is that type qualifiers in the context are applied to `static
foreach`-local variables. This behavior is unintended and changing it will fix
the ICE.
E.g.:
immutable static foreach(i;0..1) pragma(msg, typeof(i));
will print `immutable(int)`, but it should print `int`.
--
More information about the Digitalmars-d-bugs
mailing list