]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/cp/decl.c
decl.c (cp_finish_decl): Use resolve_nondeduced_context for auto.
[gcc.git] / gcc / cp / decl.c
index 7891c1e1dc2f9e59e7f70b1882475b3dc8d9cb67..714516e3336c8dd8f46ebe3822d8246187feb2bb 100644 (file)
@@ -5761,6 +5761,7 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
       if (TREE_CODE (d_init) == TREE_LIST)
        d_init = build_x_compound_expr_from_list (d_init, ELK_INIT,
                                                  tf_warning_or_error);
+      d_init = resolve_nondeduced_context (d_init);
       if (describable_type (d_init))
        {
          type = TREE_TYPE (decl) = do_auto_deduction (type, d_init,
This page took 0.045123 seconds and 5 git commands to generate.