public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4961: Internal compiler error in g++ 3.0.2
@ 2001-11-21 16:26 poenitz
  0 siblings, 0 replies; 2+ messages in thread
From: poenitz @ 2001-11-21 16:26 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/4961: Internal compiler error in g++ 3.0.2
@ 2001-11-21 16:56 Andrew Pinski
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Pinski @ 2001-11-21 16:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/4961; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: poenitz@HTWM.De
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/4961: Internal compiler error in g++ 3.0.2
Date: Wed, 28 Nov 2001 09:06:51 -0500

 g++ 3.1 returns this and does NOT ICE:
 g++ -v 3liner.cc
 Reading specs from /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-
 lib/i686-pc-linux-gnu/3.1/specs
 Configured with: /lhome/src/gnu/gcc/gcc3.1/src/configure 
 --prefix=/home/linux --with-gnu-as=/home/linux/bun/as --with-gnu-
 ld=/home/linux/bin/ld --enable-threads=posix --enable-shared
 Thread model: posix
 gcc version 3.1 20011125 (experimental)
   /home/rodent/pinskia/gcc-linux/bin/../lib/gcc-lib/i686-pc-linux-
 gnu/3.1/cc1plus -v -iprefix /home/rodent/pinskia/gcc-
 linux/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.1/ -D__GNUC__=3 
 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux 
 -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix 
 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 
 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ 
 -D__tune_pentiumpro__ 3liner.cc -D__GNUG__=3 -D__DEPRECATED 
 -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase 3liner.cc 
 -version -o /tmp/ccbkyxb2.s
 GNU CPP version 3.1 20011125 (experimental) (cpplib) (i386 Linux/ELF)
 GNU C++ version 3.1 20011125 (experimental) (i686-pc-linux-gnu)
          compiled by GNU C version 3.1 20011125 (experimental).
 ignoring nonexistent directory "/usr/local/include"
 ignoring duplicate directory "/home/linux/include/g++-v3"
 ignoring duplicate directory 
 "/home/linux/include/g++-v3/i686-pc-linux-gnu"
 ignoring duplicate directory "/home/linux/include/g++-v3/backward"
 ignoring duplicate directory "/home/linux/lib/gcc-lib/i686-pc-linux-
 gnu/3.1/include"
 ignoring duplicate directory "/home/linux/i686-pc-linux-gnu/include"
 #include "..." search starts here:
 #include <...> search starts here:
   /home/rodent/pinskia/gcc-linux/include/g++-v3
   /home/rodent/pinskia/gcc-linux/include/g++-v3/i686-pc-linux-gnu
   /home/rodent/pinskia/gcc-linux/include/g++-v3/backward
   /home/rodent/pinskia/gcc-linux/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
   /home/rodent/pinskia/gcc-linux/i686-pc-linux-gnu/include
   /home/linux/include
   /usr/include
 End of search list.
 3liner.cc:3: template-id `X<>' for `X<int>::X()' does not match any 
 template
     declaration
 3liner.cc:3: parse error before `{' token
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-28 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-21 16:26 c++/4961: Internal compiler error in g++ 3.0.2 poenitz
2001-11-21 16:56 Andrew Pinski

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