This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27803] New: [4.2 regression] ICE with invalid bit-field
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2006 20:43:17 -0000
- Subject: [Bug c++/27803] New: [4.2 regression] ICE with invalid bit-field
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code causes an ICE on mainline:
=====================
struct A
{
double i : 8;
};
void foo(A& a)
{
(char)a.i;
}
=====================
bug.cc:7: error: bit-field 'double A::i' with non-integral type
bug.cc: In function 'void foo(A&)':
bug.cc:12: internal compiler error: in convert_move, at expr.c:363
Please submit a full bug report, [etc.]
Mark, this is probably more fallout from your bit-field patches.
--
Summary: [4.2 regression] ICE with invalid bit-field
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27803