This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16042] [3.3/3.4 regression] ICE with array assignment


------- Additional Comments From bangerth at dealii dot org  2004-06-18 13:28 -------
This is a regression in 3.3 and 3.4 which ICE, over 3.2 which doesn't: 
 
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc 
x.cc: In function `int main(int, char**)': 
x.cc:4: internal compiler error: tree check: expected tree_list, have  
   constructor in reshape_init, at cp/decl.c:8408 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc 
x.cc: In function `int main(int, char**)': 
x.cc:4: internal compiler error: tree check: expected tree_list, have 
constructor in reshape_init, at cp/decl.c:4373 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
Mainline indeed doesn't ICE, but reports 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
x.cc: In function `int main(int, char**)': 
x.cc:4: error: invalid initializer 
 
This does seem sensible to me, since my understanding is that tha 
  (compound-type){initializer-list} 
syntax is only C99, but not part of the C++ standard. 
 
In any case, the ICE in 3.3 and 3.4 is a regression. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.3.4 3.4.0
      Known to work|                            |3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-18 13:28:26
               date|                            |
            Summary|Segmentation fault : array  |[3.3/3.4 regression] ICE
                   |assign                      |with array assignment
   Target Milestone|---                         |3.4.2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]