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++/34298] [3.4] ICE on templated class with statically sized array computed from static const member



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


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