This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2348: scalar assignment to struct causes compiler crash



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]