This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
- From: "dweatherford at facebook dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2007 07:00:36 -0000
- Subject: [Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
- References: <bug-34298-15460@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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