public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27505]  New: ICE in const folding with bitfields
@ 2006-05-08 19:28 mueller at gcc dot gnu dot org
  2006-05-08 19:29 ` [Bug c++/27505] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-05-08 19:28 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
@ 2006-05-08 19:29 ` pinskia at gcc dot gnu dot org
  2006-05-08 19:34 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08 19:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in const folding with   |[4.2 Regression] ICE in
                   |bitfields                   |const folding with bitfields
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
  2006-05-08 19:29 ` [Bug c++/27505] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-05-08 19:34 ` pinskia at gcc dot gnu dot org
  2006-05-08 19:55 ` mueller at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-08 19:33 -------
Confirmed, reduced testcase:
typedef struct QSplitterPrivate
{
  bool compatMode:8;
} QSplitterPrivate;

void
setResizeMode ()
{
  QSplitterPrivate d1;
  if (!d1.compatMode)
    ;
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-08 19:33:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
  2006-05-08 19:29 ` [Bug c++/27505] [4.2 Regression] " pinskia at gcc dot gnu dot org
  2006-05-08 19:34 ` pinskia at gcc dot gnu dot org
@ 2006-05-08 19:55 ` mueller at gcc dot gnu dot org
  2006-05-11  7:31 ` kazu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-05-08 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mueller at gcc dot gnu dot org  2006-05-08 19:55 -------
triggering quite often, raising severity


-- 

mueller at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-08 19:55 ` mueller at gcc dot gnu dot org
@ 2006-05-11  7:31 ` kazu at gcc dot gnu dot org
  2006-05-15 22:54 ` mmitchel at gcc dot gnu dot org
  2006-05-17 20:41 ` kazu at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-11  7:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kazu at gcc dot gnu dot org  2006-05-11 07:31 -------
Some analysis at:

http://gcc.gnu.org/ml/gcc/2006-05/msg00263.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-11  7:31 ` kazu at gcc dot gnu dot org
@ 2006-05-15 22:54 ` mmitchel at gcc dot gnu dot org
  2006-05-17 20:41 ` kazu at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-15 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-05-15 22:54 -------
Subject: Bug 27505

Author: mmitchel
Date: Mon May 15 22:54:19 2006
New Revision: 113803

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113803
Log:
        PR c++/27505
        * call.c (convert_like_real): Convert bitfields to their declared
        types when forming an rvalue.
        * tree.c (convert_bitfield_to_declared_type): New function.
        (rvalue): Use it.
        * cp-tree.h (convert_bitfield_to_declare_type): Declare it.
        PR c++/27505
        * g++.dg/expr/bitfield1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/expr/bitfield1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
  2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-05-15 22:54 ` mmitchel at gcc dot gnu dot org
@ 2006-05-17 20:41 ` kazu at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-17 20:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kazu at gcc dot gnu dot org  2006-05-17 20:41 -------
Mark Mitchell checked in a patch recently.


-- 

kazu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27505


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-17 20:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 19:28 [Bug c++/27505] New: ICE in const folding with bitfields mueller at gcc dot gnu dot org
2006-05-08 19:29 ` [Bug c++/27505] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-05-08 19:34 ` pinskia at gcc dot gnu dot org
2006-05-08 19:55 ` mueller at gcc dot gnu dot org
2006-05-11  7:31 ` kazu at gcc dot gnu dot org
2006-05-15 22:54 ` mmitchel at gcc dot gnu dot org
2006-05-17 20:41 ` kazu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).