]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parse.y (bad_parm): Add missing argument to error function call.
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Wed, 18 Dec 2002 15:03:01 +0000 (15:03 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Wed, 18 Dec 2002 15:03:01 +0000 (15:03 +0000)
From-SVN: r60250

gcc/cp/ChangeLog
gcc/cp/parse.y

index 3e52602babc2b6934cef17c0b49ca34384cd2875..f4c75cf42aa0985b535db3cb185280dcccd59d15 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * parse.y (bad_parm): Add missing argument to error function call.
+
 2002-12-18  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/8442
index 8b1f1e6124e4053321e4067fa698a107d5f4c414..e929ebe9494f84365e3beb5a8fe1efaf481b8950 100644 (file)
@@ -3825,7 +3825,7 @@ bad_parm:
                    {
                      if (TREE_CODE (TREE_OPERAND ($$, 0)) == TEMPLATE_TYPE_PARM
                          || TREE_CODE (TREE_OPERAND ($$, 0)) == BOUND_TEMPLATE_TEMPLATE_PARM)
-                       error ("`%E' is not a type, use `typename %E' to make it one", $$);
+                       error ("`%E' is not a type, use `typename %E' to make it one", $$, $$);
                      else
                        error ("no type `%D' in `%T'", TREE_OPERAND ($$, 1), TREE_OPERAND ($$, 0));
                    }