[Issue 19661] DMD 2.084.0 SIGSEGV in std.traits.isFunction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 18 13:38:59 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19661
Hiroki Noda <kubo39 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kubo39 at gmail.com
--- Comment #1 from Hiroki Noda <kubo39 at gmail.com> ---
I tried this in dmd 2.085.1, and got segv too.
`immutable bool testMod = ...` causes stack overflow, however I'm not sure why
`immutable testMod = ...` works...
---
immutable bool testMod = test19661(); // SEGV
// immutable testMod = test19661(); // Can compile and works.
// enum testMod = test19661(); // Error: circular initialization
bool test19661()
{
import std.traits : isFunction;
return isFunction!testMod;
}
--
More information about the Digitalmars-d-bugs
mailing list