PR c++/21089
commit409afdd4c169768d6dcc6430c8babc31ba8d118b
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2005 20:58:46 +0000 (11 20:58 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2005 20:58:46 +0000 (11 20:58 +0000)
treead1f06ab728212d615db8d82cc4ed542b8c44bc5
parent64575aa3a5b059d421d4c456f37d919a222a72fe
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105256 138bc75d-0d04-0410-961f-82ee72b054a4
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]