re PR c++/27505 (ICE in const folding with bitfields)
authorMark Mitchell <mark@codesourcery.com>
Mon, 15 May 2006 22:54:19 +0000 (22:54 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 15 May 2006 22:54:19 +0000 (22:54 +0000)
commite103969791150d968fa95548d77fdc2a98587289
tree16d6dba7fe7b214f346bbadc384c51e23c2095ce
parent34a660ec3d3b402a7e1794e4408bc87afd77aba6
re PR c++/27505 (ICE in const folding with bitfields)

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.

From-SVN: r113803
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/bitfield1.C [new file with mode: 0644]