From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8834 invoked by alias); 12 Nov 2002 00:56:02 -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 8809 invoked by uid 71); 12 Nov 2002 00:56:01 -0000 Resent-Date: 12 Nov 2002 00:56:01 -0000 Resent-Message-ID: <20021112005601.8808.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, sunil.k.davasam@intel.com Received: (qmail 32610 invoked by uid 61); 12 Nov 2002 00:35:16 -0000 Message-Id: <20021112003516.32609.qmail@sources.redhat.com> Date: Tue, 19 Nov 2002 12:44:00 -0000 From: sunil.k.davasam@intel.com Reply-To: sunil.k.davasam@intel.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8536: Internal Compiler Error in cp/typeck2.c X-SW-Source: 2002-11/txt/msg00563.txt.bz2 List-Id: >Number: 8536 >Category: c++ >Synopsis: Internal Compiler Error in cp/typeck2.c >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Nov 11 16:56:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: sunil.k.davasam@intel.com >Release: unknown-1.0 >Organization: >Environment: IA32 Redhat8.0 Product, gcc 3.2 compiler >Description: I am getting following error while compiling the testcase ( t1.cpp ) with gcc3.2 compiler. Error: ------------ t1.cpp:20: Internal compiler error in force_store_init_value, at cp/typeck2.c: 443 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. --------------t1.cpp------------- #include struct C2 { C2() { printf("%sC%d()\n", "", 2); } int foo() { return 1;} }; struct C1: virtual C2 { int C1::*m0; C1() { printf("C1()\n"); } }; C1 o1[2]; int main() { return 0; } -------------- I am getting this problem only when I tried to create an array of objects. The testcase passes, if I create single instance. >How-To-Repeat: cmd> g++ t1.cpp t1.cpp:20: Internal compiler error in force_store_init_value, at cp/typeck2.c: 443 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="t1.cpp" Content-Disposition: inline; filename="t1.cpp" #include struct C2 { C2() { printf("%sC%d()\n", "", 2); } int foo() { return 1;} }; struct C1: virtual C2 { int C1::*m0; C1() { printf("C1()\n"); } }; C1 o1[2]; int main() { return 0; }