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++/17323] ICE on invalid code if static member array initialized with size computed as division by zero


------- 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


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