[Bug c++/27505] [4.2 Regression] ICE in const folding with bitfields
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 15 22:54:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list