OSDN Git Service

PR c++/49172
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2011 04:18:02 +0000 (04:18 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2011 04:18:02 +0000 (04:18 +0000)
commit5e260adbb1f177a25a39691d3e4510d6bc3b898a
treeec54c4196b5464b246ae415206f98a796fd8bc2d
parent6ee151f563e1c8a7384e5666633a51fd704f350c
PR c++/49172
* decl.c (cp_finish_decl): Adjust init_const_expr_p for refs.
(grokdeclarator): constexpr doesn't apply const for refs.
* parser.c (cp_parser_initializer_clause): Don't call
maybe_constant_value here.
* call.c (initialize_reference): Handle constexpr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175284 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ice2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-ref2.C [new file with mode: 0644]