Bug 70836 - segfault on very simple example with type error
Summary: segfault on very simple example with type error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc3
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-05 23:58 UTC by Kristian Spangsege
Modified: 2007-04-18 16:45 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-03 00:13:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Kristian Spangsege 2002-08-05 23:58:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

Description of problem:

See summary!

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

3.0.2

How reproducible:
Always

Steps to Reproduce:
1. Create a file "bug.C" with the following 3 lines:

struct B {};
template<class T> struct A {};
template<class T> struct A<T>::C: B {};

2. gcc3 bug.C

	

Actual Results:  bug.C:3: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.


Expected Results:  Some sort of descriptive error message

Additional info:

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)

Comment 1 Alan Cox 2002-12-15 22:08:00 UTC
Still present in g++ 3.2


Comment 2 Richard Henderson 2004-10-03 00:13:46 UTC
ICE persists until gcc 3.4, which yields
z.c:3: error: qualified name does not name a class before ':' token



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