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/14714] segfault when initializing a flexible array member using designated initializer


------- Additional Comments From bangerth at dealii dot org  2004-03-24 15:49 -------
Confirmed, we get an ICE for 3.3 and later: 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/gcc -std=c99 -c x.c 
x.c:6: internal compiler error: Segmentation fault 
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/gcc -std=c99 -c x.c 
x.c:6: internal compiler error: Segmentation fault 
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.5-pre/bin/gcc -std=c99 -c x.c 
x.c:6: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
I assume the code is valid but undefined, since icc gives a warning 
like so: 
 
g/x> icc -Xc -ansi -c x.c 
x.c(6): warning #1368: excess initializers are ignored 
  struct A a1 = {1,{[1]=2}}; 
                    ^ 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.3.3 3.4.0 3.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-24 15:49:18
               date|                            |


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


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