Bug 58016 - syntax error causes g++ internal error
syntax error causes g++ internal error
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-01-05 16:08 EST by Wagner T. Correa
Modified: 2007-04-18 12:38 EDT (History)
1 user (show)

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

Attachments (Terms of Use)

  None (edit)
Description Wagner T. Correa 2002-01-05 16:08:14 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13smp i686)

Description of problem:
The following piece of code contains a syntax error that causes g++ to dump
core with an itnernal error:

template <class T>
class foo {
	struct bar {

template <class T>
void foo<T>::bar::bar()

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

How reproducible:

Steps to Reproduce:
Just compile the code above.

Additional info:

Just remove the 'void' before the definition of bar::bar(), and the code
compiles fine.

Comment 1 Alan Cox 2002-12-15 14:02:33 EST
Confirmed still present in 8.0
Comment 2 Richard Henderson 2004-10-01 21:09:13 EDT
ICE persists through gcc 3.3, but fixed with gcc 3.4 c++ parser rewrite.

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