re PR c++/63885 (ICE in static assert of constexpr forwarding xvalue container member...
authorJason Merrill <jason@redhat.com>
Wed, 19 Nov 2014 22:06:26 +0000 (17:06 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 19 Nov 2014 22:06:26 +0000 (17:06 -0500)
commitf2acb8ad4361b3fa2185ab3177659d1ee9c54a7f
tree5f8522922e6a15dcc1d69df83ed7a5b6b0ec3ebc
parent69eb4fde588c5c2e4e206aeba9a5a17fcaf5cecb
re PR c++/63885 (ICE in static assert of constexpr forwarding xvalue container member rvalue reference)

PR c++/63885
* constexpr.c (cxx_eval_constant_expression) [PARM_DECL]: Don't
complain yet about a reference.
[TARGET_EXPR]: Handle TARGET_EXPR with addr == true.
[ADDR_EXPR]: Make sure we don't take the address of a CONSTRUCTOR.
(cxx_bind_parameters_in_call): In the new scheme addr is always false.
* typeck.c (build_address): Don't take the address of a CONSTRUCTOR.

From-SVN: r217815
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/constexpr-ref8.C [new file with mode: 0644]