[Issue 18115] [REG2.078-b1] case where && is not shortcut anymore in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 28 07:31:00 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18115
--- Comment #6 from Basile B. <b2.temp at gmx.com> ---
I've failed when trying to reduce the issue. Take the first one as test case.
```
module test;
class A23456{}
string foo()
{
string result;
mixin("alias m = " ~ __MODULE__ ~ ";");
foreach (member; __traits(allMembers, m))
{
if (member.length > 5 && member[$-6..$] == "A23456")
result ~= member ~ " ";
}
return result;
}
enum e = foo();
```
--
More information about the Digitalmars-d-bugs
mailing list