public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34298] New: [3.4] ICE on templated class with statically sized array computed from static const member
@ 2007-11-30 6:58 dweatherford at facebook dot com
2007-11-30 7:00 ` [Bug c++/34298] " dweatherford at facebook dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dweatherford at facebook dot com @ 2007-11-30 6:58 UTC (permalink / raw)
To: gcc-bugs
I'm not really sure how to explain this one, so I'll let the attached reduced
test case do the talking. The same code compiles fine on the same machine
running g++-4.1.2-20061115 (Debian prerelease 4.1.1-21)
Output of `g++ -v`:
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal
--prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4
--enable-shared --with-system-zlib --enable-nls --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --with-tune=i686 i486-linux-gnu
Thread model: posix
gcc version 3.4.6 (Debian 3.4.6-5)
--
Summary: [3.4] ICE on templated class with statically sized array
computed from static const member
Product: gcc
Version: 3.4.6
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dweatherford at facebook dot com
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34298
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
2007-11-30 6:58 [Bug c++/34298] New: [3.4] ICE on templated class with statically sized array computed from static const member dweatherford at facebook dot com
@ 2007-11-30 7:00 ` dweatherford at facebook dot com
2007-11-30 23:11 ` pinskia at gcc dot gnu dot org
2007-12-01 12:12 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: dweatherford at facebook dot com @ 2007-11-30 7:00 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
2007-11-30 6:58 [Bug c++/34298] New: [3.4] ICE on templated class with statically sized array computed from static const member dweatherford at facebook dot com
2007-11-30 7:00 ` [Bug c++/34298] " dweatherford at facebook dot com
@ 2007-11-30 23:11 ` pinskia at gcc dot gnu dot org
2007-12-01 12:12 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-30 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-11-30 23:11 -------
3.4.x is no longer supported.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34298
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34298] [3.4] ICE on templated class with statically sized array computed from static const member
2007-11-30 6:58 [Bug c++/34298] New: [3.4] ICE on templated class with statically sized array computed from static const member dweatherford at facebook dot com
2007-11-30 7:00 ` [Bug c++/34298] " dweatherford at facebook dot com
2007-11-30 23:11 ` pinskia at gcc dot gnu dot org
@ 2007-12-01 12:12 ` pcarlini at suse dot de
2 siblings, 0 replies; 4+ messages in thread
From: pcarlini at suse dot de @ 2007-12-01 12:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pcarlini at suse dot de 2007-12-01 12:12 -------
Yes, and active branches are all fine.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34298
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-01 12:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-30 6:58 [Bug c++/34298] New: [3.4] ICE on templated class with statically sized array computed from static const member dweatherford at facebook dot com
2007-11-30 7:00 ` [Bug c++/34298] " dweatherford at facebook dot com
2007-11-30 23:11 ` pinskia at gcc dot gnu dot org
2007-12-01 12:12 ` pcarlini at suse dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).