This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2348: scalar assignment to struct causes compiler crash
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2348: scalar assignment to struct causes compiler crash
- From: philb at gnu dot org
- Date: 22 Mar 2001 23:07:54 -0000
- Reply-To: philb at gnu dot org
>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 <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: