Bug 99234 - Out-of-line class triple nested from template causes ICE
Out-of-line class triple nested from template causes ICE
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-07-16 08:42 EDT by Benjamin S. Scarlet
Modified: 2007-04-18 12:55 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-18 11:12:19 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 Benjamin S. Scarlet 2003-07-16 08:42:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
compiling the following code causes an internal compiler error.

template <class T0>
class A {
  class B;

template <class T0>
class A<T0>::B {
  class C;

template <class T0>
class A<T0>::B::C {
  A<T0> &a;

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

How reproducible:

Steps to Reproduce:
1. put the above code in a file (foo.cpp)
2. compile the file (g++ foo.cpp -o foo.o)


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

Additional info:
Comment 1 Benjamin S. Scarlet 2003-07-16 08:44:24 EDT
I guess that's actually only double nested. :-)
Comment 2 Jakub Jelinek 2003-07-18 11:12:19 EDT
With gcc 3.3 (e.g. gcc-3.3-4 or gcc-3.3-14 in rawhide) I just get error message
about the testcase, no ICE.

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