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++/27505] New: ICE in const folding with bitfields


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


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