Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 55583 - g++3 segfault on example
g++3 segfault on example
Product: Red Hat Linux
Classification: Retired
Component: gcc3 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2001-11-02 09:53 EST by Neal D. Becker
Modified: 2007-04-18 12:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-01 20:47:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
TestRtoC.ii.bz2 (91.90 KB, application/octet-stream)
2001-11-02 09:59 EST, Neal D. Becker
no flags Details

  None (edit)
Description Neal D. Becker 2001-11-02 09:53:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20010901

Description of problem:
g++3 -v -c -save-temps TestRtoC.cc -I/usr/local/src/boost
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux
Thread model: posix
gcc version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3)
 /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/cpp0 -lang-c++ -D__GNUG__=3
-I/usr/local/src/boost -D__GNUC__=3 -D__GNUC_MINOR__=0
-D__GNUC_PATCHLEVEL__=2 -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_i386__ TestRtoC.cc TestRtoC.ii
GNU CPP version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3) (cpplib) (i386
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/cc1plus -fpreprocessed
TestRtoC.ii -quiet -dumpbase TestRtoC.cc -version -o TestRtoC.s
GNU CPP version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3) (cpplib) (i386
GNU C++ version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3) (i386-redhat-linux)
	compiled by GNU C version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3).
In file included from TestRtoC.cc:1:
RtoC.H:111: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.see above

Additional info:
Comment 1 Neal D. Becker 2001-11-02 09:59:54 EST
Created attachment 36201 [details]
Comment 2 Jakub Jelinek 2001-11-07 13:05:03 EST
It is ICE on wrong code, you're missing a typename there.
Anyway, the compiler shouldn't segfault, but give an error, so I'll try to debug
Simplified testcase is:
template <class T> struct S {
  typedef typename T::t t;
template <class T> struct A
  typedef S<T>::t u;
  typedef u::t v;
Comment 3 Alan Cox 2002-12-15 13:07:00 EST
Still present in g++ 3.2
Comment 4 Richard Henderson 2004-10-01 20:47:37 EDT
ICE fixed for gcc 3.4.

Note You need to log in before you can comment on or make changes to this bug.