Here  is the simple C++ program :

int main()                                                                      
                                                                                
                                     
{                                                                               
                                                                                
                                     
  union {                                                                       
                                                                                
                                     
    int z;                                                                      
                                                                                
                                     
    unsigned int w;                                                             
                                                                                
                                     
  }; w = 0;                                                                     
                                                                                
                                     
                                                                                
                                                                                
                                     
}

-- 
           Summary: GCC does not emit debug info for variables in anonymous
                    unions
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dpatel at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20998

Reply via email to