http://d.puremagic.com/issues/show_bug.cgi?id=10524
Summary: case and with() isn't work together
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from mimocrocodil <[email protected]> 2013-07-01 17:56:12 PDT
---
struct S
{
int field;
}
void main()
{
int a = 1;
S struct_with_long_name;
switch( a )
{
case 0:
struct_with_long_name.field = 444; // ok
break;
with( struct_with_long_name )
{
case 1:
field = 555; // segfault
break;
}
default:
break;
}
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------