public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27471]  New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
@ 2006-05-07 12:43 mueller at gcc dot gnu dot org
  2006-05-07 17:01 ` [Bug c++/27471] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-05-07 12:43 UTC (permalink / raw)
  To: gcc-bugs

Hi, 

due to the bitfield handling changes, C++ frontend now ICEs on this: 

=== Cut===
struct A { unsigned a:8; };

extern void b(unsigned char);

void breakme (A f)
{
  b((unsigned char) f.a);
}
=== Cut ===
bitfield-ice-1.cc: In function 'void breakme(A)':
bitfield-ice-1.cc:7: internal compiler error: in build_c_cast, at
cp/typeck.c:5434
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [4.2 Regression] ICE within build_c_cast
                    cp/typeck.c:5434
           Product: gcc
           Version: 4.2.0
            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=27471


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

* [Bug c++/27471] [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
  2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
@ 2006-05-07 17:01 ` pinskia at gcc dot gnu dot org
  2006-05-08 19:54 ` mueller at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-07 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-07 17:00 -------
Confirmed.


-- 

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-07 17:00:58
               date|                            |
   Target Milestone|---                         |4.2.0


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


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

* [Bug c++/27471] [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
  2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
  2006-05-07 17:01 ` [Bug c++/27471] " pinskia at gcc dot gnu dot org
@ 2006-05-08 19:54 ` mueller at gcc dot gnu dot org
  2006-05-17 20:39 ` kazu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-05-08 19:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mueller at gcc dot gnu dot org  2006-05-08 19:54 -------
raising severity because it triggers frequently


-- 

mueller at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


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


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

* [Bug c++/27471] [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
  2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
  2006-05-07 17:01 ` [Bug c++/27471] " pinskia at gcc dot gnu dot org
  2006-05-08 19:54 ` mueller at gcc dot gnu dot org
@ 2006-05-17 20:39 ` kazu at gcc dot gnu dot org
  2006-05-19  3:01 ` mmitchel at gcc dot gnu dot org
  2006-05-19  3:06 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-17 20:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kazu at gcc dot gnu dot org  2006-05-17 20:39 -------
Assigning to Mark Mitchell as he agreed.


-- 

kazu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kazu at gcc dot gnu dot org
         AssignedTo|unassigned at gcc dot gnu   |mmitchel at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/27471] [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
  2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-17 20:39 ` kazu at gcc dot gnu dot org
@ 2006-05-19  3:01 ` mmitchel at gcc dot gnu dot org
  2006-05-19  3:06 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-19  3:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-05-19 03:01 -------
Subject: Bug 27471

Author: mmitchel
Date: Fri May 19 03:01:14 2006
New Revision: 113902

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113902
Log:
        PR c++/27471
        PR c++/27506
        * typeck.c (decay_conversion): Convert bitfields to their declared
        types here.  Improve documentation.  Avoid use of cp_convert.
        (default_conversion): Make it static.  Perform integral promotions
        before lvalue-to-rvalue, function-to-pointer, and array-to-pointer
        conversions.
        * init.c (build_init): Remove.
        (expand_default_init): Do not call rvalue.
        * call.c (null_ptr_cst_p): Robustify.
        (build_conditional_expr): Tidy.
        * except.c (build_throw): Do not perform lvalue-to-rvalue
        conversion on operand before initializing temporary.
        * tree.c (convert.h): Include it.
        (convert_bitfield_to_declared_type): Use convert_to_integer, not
        cp_convert.
        (rvalue): Don't convert bitfields to their declared type here.
        * cp-tree.h (build_init): Remove.
        (default_conversion): Likewise.
        * typeck2.c (build_m_component_ref): Do not perform
        lvalue-to-rvalue, function-to-pointer, or array-to-pointer
        conversions here.  Correct error message.
        PR c++/27471
        PR c++/27506
        * g++.dg/conversion/bitfield5.C: New test.
        * g++.dg/conversion/bitfield6.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/conversion/bitfield5.C
    trunk/gcc/testsuite/g++.dg/conversion/bitfield6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/except.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27471] [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434
  2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-19  3:01 ` mmitchel at gcc dot gnu dot org
@ 2006-05-19  3:06 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-19  3:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-05-19 03:06 -------
Fixed in 4.2.0.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-05-19  3:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-07 12:43 [Bug c++/27471] New: [4.2 Regression] ICE within build_c_cast cp/typeck.c:5434 mueller at gcc dot gnu dot org
2006-05-07 17:01 ` [Bug c++/27471] " pinskia at gcc dot gnu dot org
2006-05-08 19:54 ` mueller at gcc dot gnu dot org
2006-05-17 20:39 ` kazu at gcc dot gnu dot org
2006-05-19  3:01 ` mmitchel at gcc dot gnu dot org
2006-05-19  3:06 ` mmitchel 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).