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/16566] ICE with flexible arrays


------- Additional Comments From bangerth at dealii dot org  2004-07-15 15:42 -------
Confirmed: 
------------------------ 
struct S; 
 
struct C { 
    int i; 
    struct S *tab[]; 
}; 
 
struct S { struct C c; }; 
 
void foo (struct S *x) { 
  foo(((void)1, x->c).tab[0]);  
} 
--------------------- 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.c 
x.c: In function `foo': 
x.c:11: 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 -c x.c 
x.c: In function `foo': 
x.c:11: internal compiler error: in create_tmp_var, at gimplify.c:358 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
 
This used to work with 3.2 and 3.3, so is a regression in 3.4 and mainline. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.2.3 3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-15 15:42:34
               date|                            |
            Summary|internal compiler error:    |ICE with flexible arrays
                   |Segmentation fault when     |
                   |compiling a C file.         |
   Target Milestone|---                         |3.4.2


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


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