re PR c++/50473 ([C++0x] ICE in type_has_nontrivial_copy_init, at cp/tree.c:2574)
[gcc.git] / gcc / cp / ChangeLog
index 18e06d82cd1e34a2750fa68ac4a382d931e162b6..05ca49319106b366817c979cc3c699bb1d465b56 100644 (file)
@@ -1,5 +1,13 @@
 2014-11-17  Jason Merrill  <jason@redhat.com>
 
+       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.
+
        Handle C++14 constexpr flow control.
        * constexpr.c (cxx_eval_loop_expr, cxx_eval_switch_expr): New.
        (cxx_eval_statement_list): New.