[Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
dweatherford at facebook dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 30 07:00:00 GMT 2007
------- Comment #1 from dweatherford at facebook dot com 2007-11-30 07:00 -------
Created an attachment (id=14669)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14669&action=view)
Reduced test case
The two branches of the '#if' should be functionally identical, but the one
indicated as doing so in the comments crashes the compiler. Reported error is:
test.cxx: In instantiation of `void set<Item>::clear() [with Item = int]':
test.cxx:3: instantiated from `set<Item>::set() [with Item = int]'
test.cxx:19: instantiated from here
test.cxx:4: internal compiler error: Segmentation fault
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34298
More information about the Gcc-bugs
mailing list