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]
Other format: [Raw text]

[Bug c++/27803] New: [4.2 regression] ICE with invalid bit-field


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


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