Commit 9df540a8 by Gabriel Dos Reis Committed by Gabriel Dos Reis

re PR target/24236 (gcc.dg/i386-sse-10.c fails on the mainline on x86_64-linux-gnu)

        PR c++/24235
        * pt.c (check_instantiated_args): Reword diagnostic message about
        template argument involving local types.

From-SVN: r107451
parent 86556d87
2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net> 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/24235
* pt.c (check_instantiated_args): Reword diagnostic message about
template argument involving local types.
2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/21667 PR c++/21667
* typeck.c (build_array_ref): Avoid code duplicate. Use common * typeck.c (build_array_ref): Avoid code duplicate. Use common
C/C++ diagnostic function warn_array_subscript_with_type_char. C/C++ diagnostic function warn_array_subscript_with_type_char.
......
...@@ -9093,7 +9093,8 @@ check_instantiated_args (tree tmpl, tree args, tsubst_flags_t complain) ...@@ -9093,7 +9093,8 @@ check_instantiated_args (tree tmpl, tree args, tsubst_flags_t complain)
if (TYPE_ANONYMOUS_P (nt)) if (TYPE_ANONYMOUS_P (nt))
error ("%qT is/uses anonymous type", t); error ("%qT is/uses anonymous type", t);
else else
error ("%qT uses local type %qT", t, nt); error ("template argument for %qD uses local type %qT",
tmpl, t);
} }
result = true; result = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment