https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99331

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is caused by this change:

@@ -7278,7 +7306,7 @@ convert_template_argument (tree parm,
          val = error_mark_node;
        }
    }
-      else if (!dependent_template_arg_p (orig_arg)
+      else if (!type_dependent_expression_p (orig_arg)
           && !uses_template_parms (t))
    /* We used to call digest_init here.  However, digest_init
       will report errors, which we don't want when complain

Here orig_arg is SIZEOF_EXPR<T>; dependent_template_arg_p (orig_arg) was true,
but  type_dependent_expression_p (orig_arg) is false so we warn in
convert_nontype_argument.
  • [Bug c++/99331] [8/9/10/11 Regr... mpolacek at gcc dot gnu.org via Gcc-bugs

Reply via email to