[Issue 11317] glue.c:1218: virtual unsigned int Type::totym(): Assertion `0' failed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 14 04:57:44 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11317
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-14 23:57:43 EST ---
void test11317()
{
auto ref uint fun11317()
{
return 0;
}
assert(fun11317() == 0);
}
fun11317 is correctly inferred to be non-ref, but the glue layer (seeing that
tf->isref is true) tries to take the address of it anyway. Hence the error,
which causes the ice.
https://github.com/D-Programming-Language/dmd/pull/2763
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list