[Issue 11659] New: false positive goto skips initialization of variable error (skipping enum initialization)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 1 11:38:33 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11659
Summary: false positive goto skips initialization of variable
error (skipping enum initialization)
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-12-01 11:38:30 PST ---
cat > goto.d << CODE
int main()
{
goto LABEL;
enum expr = "0";
LABEL:
return mixin(expr);
}
CODE
dmd -c goto
----
goto.d(3): Error: goto skips declaration of variable goto.main.expr at
goto.d(4)
----
This is a regression introduced with
https://github.com/D-Programming-Language/dmd/pull/2839. Reported by
bearophile:
https://d.puremagic.com/issues/show_bug.cgi?id=602#c22
--
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