[Issue 16292] New: [REG2.069] bogus "Error: goto skips declaration of variable"
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 18 14:15:13 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16292
Issue ID: 16292
Summary: [REG2.069] bogus "Error: goto skips declaration of
variable"
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ag0aep6g at gmail.com
void main()
{
goto label; /* Error: goto skips declaration of variable test.main.__dop51
at test.d(4) */
if (makeS()[0]) /* line 4 */
{
label:
}
}
S makeS() { return S(); }
struct S
{
int opIndex(size_t i) { return 0; }
}
--
More information about the Digitalmars-d-bugs
mailing list