]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/24236 (gcc.dg/i386-sse-10.c fails on the mainline on x86_64-linux-gnu)
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Thu, 24 Nov 2005 03:11:33 +0000 (03:11 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 24 Nov 2005 03:11:33 +0000 (03:11 +0000)
        PR c++/24235
        * pt.c (check_instantiated_args): Reword diagnostic message about
        template argument involving local types.

From-SVN: r107451

gcc/cp/ChangeLog
gcc/cp/pt.c

index 54362869f2f33798110e6652e93d667035e3c28c..046d049bd08f645274042f66d361e7a1ec445cda 100644 (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
index 4f13a7d073e493f2457c49e7a1cb2512702225ac..9b9a2b6df74b684623bfb3153ca4797db1af69ba 100644 (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;
            }