From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3412 invoked by alias); 17 Apr 2003 22:46:01 -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 3391 invoked by uid 71); 17 Apr 2003 22:46:00 -0000 Resent-Date: 17 Apr 2003 22:46:00 -0000 Resent-Message-ID: <20030417224600.3389.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, lk1@teamten.com Received: (qmail 30454 invoked by uid 48); 17 Apr 2003 22:38:15 -0000 Message-Id: <20030417223815.30453.qmail@sources.redhat.com> Date: Thu, 17 Apr 2003 22:46:00 -0000 From: lk1@teamten.com Reply-To: lk1@teamten.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10428: struct causes internal error X-SW-Source: 2003-04/txt/msg00817.txt.bz2 List-Id: >Number: 10428 >Category: c++ >Synopsis: struct causes internal error >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Thu Apr 17 22:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Lawrence Kesteloot >Release: gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) >Organization: >Environment: Linux neelypcx 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux >Description: Compile file in "How-To-Repeat" with "gcc foo.cpp". I get this error: foo.cpp:7: Internal compiler error in write_unscoped_name, at cp/mangle.c:782 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. In another context (more complex), I got this error: /home/lawrence/src/include/ui.hpp:228: Internal error #20000521. /home/lawrence/src/include/ui.hpp:228: Internal compiler error in write_unscoped_name, at cp/mangle.c:782 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This error doesn't happen if there's no namespace. >How-To-Repeat: namespace Name { typedef void *(*Function)( void *, int ); struct Foo { struct Function xyz[5]; }; } >Fix: The source supplied above is buggy (the "struct" shouldn't be there). But there shouldn't be a compiler error, either. >Release-Note: >Audit-Trail: >Unformatted: