semantics.c (validate_constexpr_fundecl): Check DECL_TEMPLATE_INFO rather than DECL_T...
[gcc.git] / gcc / cp / ChangeLog
index d6241cd4a2c5f8c53be59ed0d60eb036de576e28..961b8bfcfe30461badcc5dddeee81cf71fc393ce 100644 (file)
@@ -1,5 +1,12 @@
 2011-05-11  Jason Merrill  <jason@redhat.com>
 
+       * semantics.c (validate_constexpr_fundecl): Check DECL_TEMPLATE_INFO
+       rather than DECL_TEMPLATE_INSTANTIATION.
+       (cxx_eval_call_expression): Likewise.
+
+       * semantics.c (register_constexpr_fundef): Add to hash table here.
+       (validate_constexpr_fundecl): Not here.
+
        * decl.c (grokdeclarator): Only set DECL_DECLARED_CONSTEXPR_P once.
 
        * pt.c (build_non_dependent_expr): Don't check null_ptr_cst_p,