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. From-SVN: r113902
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ambig1.C | Loading commit data... | |
bitfield1.C | Loading commit data... | |
bitfield2.C | Loading commit data... | |
bitfield3.C | Loading commit data... | |
bitfield4.C | Loading commit data... | |
bitfield5.C | Loading commit data... | |
bitfield6.C | Loading commit data... | |
cast1.C | Loading commit data... | |
cond1.C | Loading commit data... | |
cond2.C | Loading commit data... | |
cond3.C | Loading commit data... | |
cond6.C | Loading commit data... | |
const1.C | Loading commit data... | |
const2.C | Loading commit data... | |
const3.C | Loading commit data... | |
dr195-1.C | Loading commit data... | |
dr195.C | Loading commit data... | |
dynamic1.C | Loading commit data... | |
nullptr1.C | Loading commit data... | |
nullptr2.C | Loading commit data... | |
op1.C | Loading commit data... | |
op2.C | Loading commit data... | |
ptrmem1.C | Loading commit data... | |
reinterpret1.C | Loading commit data... | |
reinterpret2.C | Loading commit data... | |
reinterpret3.C | Loading commit data... | |
simd1.C | Loading commit data... | |
simd2.C | Loading commit data... | |
simd3.C | Loading commit data... | |
to-virtual-base-1.C | Loading commit data... | |
void1.C | Loading commit data... |