[Issue 11727] New: [ICE] Returning an enum with no value from a function fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 11 19:06:54 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11727
Summary: [ICE] Returning an enum with no value from a function
fails
Product: D
Version: D2
Platform: Other
OS/Version: Other
Status: NEW
Severity: critical
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: monkeyworks12 at hotmail.com
--- Comment #0 from monkeyworks12 at hotmail.com 2013-12-11 19:06:48 PST ---
auto returnEnum()
{
//Fails with "dmd: mtype.c:7620: virtual Type* TypeEnum::nextOf():
Assertion `sym->scope' failed."
//enum n;
enum n = 0; //Ok
return n;
}
void main()
{
assert(returnEnum() == 0);
}
--
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