trunk r113199, fixing bug 26534, introduced an ICE with this testcase: === Cut === enum ColorRole { WindowText, Button };
struct QPalette { ColorRole bg_role:8; bool hasBackground(); }; bool QPalette::hasBackground () { return (ColorRole (bg_role) != WindowText); } === Cut === internal compiler error: in build_c_cast, at cp/typeck.c:5433 Please submit a full bug report, with preprocessed source if appropriate. -- Summary: ICE on casts on bitfields Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mueller at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27292