This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17323] ICE on invalid code if static member array initialized with size computed as division by zero
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2004 16:56:36 -0000
- Subject: [Bug c++/17323] ICE on invalid code if static member array initialized with size computed as division by zero
- References: <20040904185519.17323.niemayer@isg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-09-06 16:56 -------
This is probably unbroken if we internally return "1" as size of the incomplete
type, after we emit the diagnostic. After all, no types in C++ can have size 0,
so expanding sizeof to zero is asking for troubles.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17323