OSDN Git Service

PR c++/23965
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2005 15:34:41 +0000 (15:34 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2005 15:34:41 +0000 (15:34 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104489 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5bdf8bd..56c3a2c 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-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/23947
index e8f93c4..3507e58 100644 (file)
@@ -2689,7 +2689,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 3d33620..b27230c 100644 (file)
@@ -1,5 +1,10 @@
 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
        * g++.dg/lookup/error1.C: New test.
 
index c23e33c..03a8323 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" "" }
 }