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]

c++/4961: Internal compiler error in g++ 3.0.2

[Get raw message]

>Number:         4961
>Category:       c++
>Synopsis:       robusteness against ill-formed input missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 28 05:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andre Poenitz
>Release:        3.0.2
>Organization:
here
>Environment:
System: Linux millo 2.2.16 #2 Wed Apr 18 17:22:56 CEST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.2/configure 
>Description:
I woke up in the morning etc.  ...
It's just three lines of code that trigger an internal compiler error.
Not much to say about it. I was playing around with a code snippet posted
to de.comp.lang.iso-c++.
>How-To-Repeat:
try to compile the following three lines:
------------------- snip ------------------
template <typename T> struct X { X() {} };
template<> struct X<int> { X(); };
template X<int>::X() {}
------------------- snip ------------------

Btw, the results of 2.95.2 and 3.0.2 are slightly different:
...:/tmp > g++ d.C       // 2.95
d.C:3: Internal compiler error.
d.C:3: Please submit a full bug report.
d.C:3: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.

...:/tmp > /usr/local/bin/g++ d.C  // 3.0.2
d.C:3: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

...:/tmp > /usr/local/bin/g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.2/specs
Configured with: ../gcc-3.0.2/configure
Thread model: single
gcc version 3.0.2

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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