This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27505] New: ICE in const folding with bitfields
- From: "mueller at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2006 19:28:44 -0000
- Subject: [Bug c++/27505] New: ICE in const folding with bitfields
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
this testcase ICE's in invert_truthvalue, fold-const.c:3149:
=== Cut ===
class QSplitterPrivate;
class QSplitter
{
void setResizeMode ();
QSplitterPrivate *d_func ();
};
struct QSplitterPrivate
{
bool compatMode:8;
};
void
QSplitter::setResizeMode ()
{
QSplitterPrivate *const d = d_func ();
if (!d->compatMode)
;
}
=== Cut ===
bitfield-ice-2.ii: In member function 'void QSplitter::setResizeMode()':
bitfield-ice-2.ii:16: internal compiler error: in invert_truthvalue, at
fold-const.c:3149
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in const folding with bitfields
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
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=27505