This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2006 22:54:27 -0000
- Subject: [Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
- References: <bug-27505-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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