From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1593 invoked by alias); 3 Jan 2003 18:16:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1526 invoked by uid 71); 3 Jan 2003 18:16:02 -0000 Resent-Date: 3 Jan 2003 18:16:02 -0000 Resent-Message-ID: <20030103181602.1525.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bala@rentec.com Received: (qmail 29189 invoked by uid 61); 3 Jan 2003 18:07:32 -0000 Message-Id: <20030103180732.29188.qmail@sources.redhat.com> Date: Fri, 03 Jan 2003 18:16:00 -0000 From: bala@rentec.com Reply-To: bala@rentec.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9159: g++ faults when compiling "memberspace" declarations X-SW-Source: 2003-01/txt/msg00230.txt.bz2 List-Id: >Number: 9159 >Category: c++ >Synopsis: g++ faults when compiling "memberspace" declarations >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Jan 03 10:16:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: Bala Swaminathan/Joaquín M Lopez >Release: unknown-1.0 >Organization: >Environment: UNIX/LINUX >Description: Please see bug report 9133. Joaquín M Lopez has closed in on the problem from my original submission. Here is the gist of the problem: // membspace.C template class A { class A1{} A1; }; template class B: public A {}; int main(void) { return 0; } // booby:~/c++/bimap> alias g3 alias g3='/usr/local/products/gcc/3.2.1/bin/g++' booby:~/c++/bimap> g3 -v Reading specs from /usr/local/products/gcc/3.2.1/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs Configured with: ../gcc-3.2.1/configure --with-gnu-as --with-as=/usr/local/products/binutils/2.11.2/bin/gnu-as --with-gnu-ld --with-ld=/usr/local/products/binutils/2.11.2/bin/gnu-ld --disable-nls --enable-languages=c,c++ --disable-libgcj --disable-shared --prefix=/usr/local/products/gcc/3.2.1 Thread model: posix gcc version 3.2.1 booby:~/c++/bimap> g3 membspace.C membspace.C:7: internal error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >How-To-Repeat: Compile the sampple code provided above (repeated here): // membspace.C template class A { class A1{} A1; }; template class B: public A {}; int main(void) { return 0; } // >Fix: >Release-Note: >Audit-Trail: >Unformatted: