[Issue 1546] New: GDC unable parse static data in switch/case

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 3 11:17:31 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1546

           Summary: GDC unable parse static data in switch/case
           Product: DGCC aka GDC
           Version: 0.23
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: binghe15 at yeah.net


Just like this:
void main()
{
        switch(1)
        {
                case 0:
                        static int a = 0;
                case 1:
                        static int a = 1;
        }
}


-- 



More information about the D.gnu mailing list