re PR c++/21089 (C++ front-end does not "inline" the static const double)
authorMark Mitchell <mark@codesourcery.com>
Tue, 11 Oct 2005 20:58:46 +0000 (20:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 11 Oct 2005 20:58:46 +0000 (20:58 +0000)
commit393e756da72a7e508b102c04c0fa2e83f136f7aa
treead1f06ab728212d615db8d82cc4ed542b8c44bc5
parent8f4c0ef6a4333e52b4a33cecd1bef3c48c701d63
re PR c++/21089 (C++ front-end does not "inline" the static const double)

PR c++/21089
* call.c (convert_like_real): Use decl_constant_value, not
integral_constant_value.
* init.c (constant_value_1): New function.
(integral_constant_value): Use it.
(decl_constant_value): Likewise.
* typeck.c (decay_conversion): Use decl_constant_value, not
integral_constant_value.
PR c++/21089
* g++.dg/init/float1.C: New test.

From-SVN: r105256
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/init.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/float1.C [new file with mode: 0644]