From 9df540a8d941d18ea691c3eba9a09d12107d5c3e Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Thu, 24 Nov 2005 03:11:33 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/pt.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 54362869f2f..046d049bd08 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2005-11-23 Gabriel Dos Reis + + PR c++/24235 + * pt.c (check_instantiated_args): Reword diagnostic message about + template argument involving local types. + 2005-11-23 Gabriel Dos Reis PR c++/21667 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 4f13a7d073e..9b9a2b6df74 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; }