]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/23965 (Bogus error message: no matching function for call to 'foo(<type...
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Wed, 21 Sep 2005 15:39:53 +0000 (15:39 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Wed, 21 Sep 2005 15:39:53 +0000 (15:39 +0000)
PR c++/23965
* call.c (resolve_args): Return error_mark_node on arguments
whose TREE_TYPE is error_mark_node.

* g++.dg/template/error1.C: Reject "no matching function" message.

From-SVN: r104490

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error1.C

index acc38cc6a386704f7b6cbd5a4033d8e1c349377f..0d4d3093146ac36510b8529b3b9ddf5b4400956b 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/23965
+       * call.c (resolve_args): Return error_mark_node on arguments
+       whose TREE_TYPE is error_mark_node.
+
 2005-09-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/17609
index 067b0450c45400be4e25c245cd4c7f316ff6521e..ff3f3967ab08e807470448f9c9621c89fc88cf92 100644 (file)
@@ -2544,7 +2544,7 @@ resolve_args (tree args)
     {
       tree arg = TREE_VALUE (t);
       
-      if (arg == error_mark_node)
+      if (arg == error_mark_node || error_operand_p (arg))
        return error_mark_node;
       else if (VOID_TYPE_P (TREE_TYPE (arg)))
        {
index 186b5e5f6b63b5c6e7445358dc34a825e6468888..6ee73905921d84adde0af127069f3f4dc1445565 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/23965
+       * g++.dg/template/error1.C: Reject "no matching function" message.
+
 2005-09-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/17609
index c23e33c12815a9253daafb6f0bb1ac79bfa8c1a3..03a83239238d112ffe20e4a902882979910009de 100644 (file)
@@ -9,5 +9,5 @@ template <class T> void make_pair(T x);
 
 void foo(){
   struct fps_chan_ID fps; // { dg-error "incomplete" "" }
-  make_pair(fps); // { dg-error "no matching function" "" }
+  make_pair(fps);         // { dg-bogus "no matching function" "" }
 }