From mboxrd@z Thu Jan 1 00:00:00 1970 From: philb@gnu.org To: gcc-gnats@gcc.gnu.org Subject: c++/2348: scalar assignment to struct causes compiler crash Date: Thu, 22 Mar 2001 15:16:00 -0000 Message-id: <20010322230754.30909.qmail@sourceware.cygnus.com> X-SW-Source: 2001-03/msg00212.html List-Id: >Number: 2348 >Category: c++ >Synopsis: scalar assignment to struct causes compiler crash >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Thu Mar 22 15:16:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: philb@gnu.org >Release: 3.0 branch, 22/3/2001 >Organization: >Environment: >Description: This code: typedef struct { int a[3]; } a_t; void f(void) { static a_t a = 0; } causes g++ to crash like so: $ ./cc1plus ~/struct.cc void f() void f() /home/pb/struct.cc:5: Internal compiler error in gen_lowpart, at emit-rtl.c: 1093 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: