Bug 1546 – GDC unable parse static data in switch/case

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-10-03T13:17:00Z
Last change time
2015-06-09T05:14:42Z
Assigned to
dvdfrdmn
Creator
binghe15

Attachments

IDFilenameSummaryContent-TypeSize
187test.dtest casetext/html112

Comments

Comment #0 by binghe15 — 2007-10-03T13:17:28Z
Just like this: void main() { switch(1) { case 0: static int a = 0; case 1: static int a = 1; } }
Comment #1 by binghe15 — 2007-10-03T13:21:00Z
Created attachment 187 test case
Comment #2 by dvdfrdmn — 2007-10-03T17:08:52Z
Fixed in svn rev 149 / release 0.25