re PR c++/50473 ([C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574)
authorJason Merrill <jason@redhat.com>
Mon, 17 Nov 2014 20:17:56 +0000 (15:17 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 17 Nov 2014 20:17:56 +0000 (15:17 -0500)
commit51d72abe5ea04e7ec778d5fb1f0883be090057b5
tree6ba13b465e2a25a0a17dad66c10d9b9043cdfe4f
parent88436c83a4e5004b8b538cde59c3e9750b0bb8de
re PR c++/50473 ([C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574)

PR c++/50473
* decl.c (cp_finish_decl): Don't try to process a non-dependent
constant initializer for a reference.
* pt.c (value_dependent_expression_p): A reference is always
dependent.
* call.c (extend_ref_init_temps_1): Also clear TREE_SIDE_EFFECTS
on any NOP_EXPRs.

From-SVN: r217672
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-ice12.C
gcc/testsuite/g++.dg/cpp0x/constexpr-ref5.C [new file with mode: 0644]