[Bug c++/13791] [3.4/3.5 regression] ICE in layout_type with packed types

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 21 14:11:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-01-21 14:11 -------
Confirmed. A regression in 3.4/mainline: 
-------------------------- 
template <typename> struct O { 
    struct __attribute__((packed)) I { 
      int i; 
      char c; 
    }; 
 
    I * foo(); 
}; 
 
template<typename T> 
typename O<T>::I * 
O<T>::foo() { return 0; } 
 
template class O<int>; 
--------------------------------- 
 
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -c x.cc  
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc  
x.cc:12: internal compiler error: in layout_type, at stor-layout.c:1796 
Please submit a full bug report, 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-21 14:11:18
               date|                            |
            Summary|ICE in layout_type          |[3.4/3.5 regression] ICE in
                   |                            |layout_type with packed
                   |                            |types
   Target Milestone|---                         |3.4.0


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



More information about the Gcc-bugs mailing list