diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-11-24 03:11:33 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-11-24 03:11:33 +0000 |
commit | 9df540a8d941d18ea691c3eba9a09d12107d5c3e (patch) | |
tree | d71efb6ab3b5bc8665d7d3b24ac8bab5e1f4f65d /gcc | |
parent | 86556d87a3fd822866151722214389b4d3f72dc9 (diff) | |
download | gcc-9df540a8d941d18ea691c3eba9a09d12107d5c3e.zip gcc-9df540a8d941d18ea691c3eba9a09d12107d5c3e.tar.gz gcc-9df540a8d941d18ea691c3eba9a09d12107d5c3e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/pt.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5436286..046d049 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 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 * typeck.c (build_array_ref): Avoid code duplicate. Use common C/C++ diagnostic function warn_array_subscript_with_type_char. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 4f13a7d..9b9a2b6 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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; } |