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
This commit is contained in:
Gabriel Dos Reis 2005-11-24 03:11:33 +00:00 committed by Gabriel Dos Reis
parent 86556d87a3
commit 9df540a8d9
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -9093,7 +9093,8 @@ check_instantiated_args (tree tmpl, tree args, tsubst_flags_t complain)
if (TYPE_ANONYMOUS_P (nt))
error ("%qT is/uses anonymous type", t);
else
error ("%qT uses local type %qT", t, nt);
error ("template argument for %qD uses local type %qT",
tmpl, t);
}
result = true;
}