[Bug c/58346] ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 9 08:29:00 GMT 2013


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid,
                   |                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-09-09
                 CC|                            |jsm28 at gcc dot gnu.org
          Component|ipa                         |c
     Ever confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I believe the following should be invalid C

struct U {};
static struct U b[1] = { };

U is a zero-sized struct and b is an array built from it.  This array
cannot fulfil the basic array index operation requirements unless
the element size is bumped to one.



More information about the Gcc-bugs mailing list