www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1546] New: GDC unable parse static data in switch/case

reply d-bugmail puremagic.com writes:
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 users.sf.net
        ReportedBy: binghe15 yeah.net


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


-- 
Oct 03 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1546





------- Comment #1 from binghe15 yeah.net  2007-10-03 13:21 -------
Created an attachment (id=187)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=187&action=view)
test case


-- 
Oct 03 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1546


binghe15 yeah.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2




-- 
Oct 03 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1546


dvdfrdmn users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from dvdfrdmn users.sf.net  2007-10-03 17:08 -------
Fixed in svn rev 149 / release 0.25


-- 
Oct 03 2007