[Issue 18269] Inconsistent string representation of delegate @system attribute
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 24 20:07:08 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18269
--- Comment #2 from hsteoh at quickfur.ath.cx ---
Reduced further:
-----------
void one(T)(T t, size_t ln = 0)
{
pragma(msg, "one: ", T.stringof);
two(t);
}
void two(T)(T t)
{
pragma(msg, "two: ", T.stringof);
}
alias T = void delegate();
void main()
{
void func() @system { __gshared int x; ++x; throw new Exception(""); }
one(&func);
}
-----------
Commenting out the `alias T` line makes the problem go away.
Current investigation seems to be pointing to an ambiguity in the string table.
Still investigating further to narrow the problem down further.
--
More information about the Digitalmars-d-bugs
mailing list