Commit 1bf83ca3 by Volker Reichelt Committed by Volker Reichelt

re PR c++/23965 (Bogus error message: no matching function for call to 'foo(<type error>)')

	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: r104489
parent 28926046
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> 2005-09-20 Jakub Jelinek <jakub@redhat.com>
PR c++/23947 PR c++/23947
......
...@@ -2689,7 +2689,7 @@ resolve_args (tree args) ...@@ -2689,7 +2689,7 @@ resolve_args (tree args)
{ {
tree arg = TREE_VALUE (t); tree arg = TREE_VALUE (t);
if (arg == error_mark_node) if (arg == error_mark_node || error_operand_p (arg))
return error_mark_node; return error_mark_node;
else if (VOID_TYPE_P (TREE_TYPE (arg))) else if (VOID_TYPE_P (TREE_TYPE (arg)))
{ {
......
2005-09-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 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 PR c++/17609
* g++.dg/lookup/error1.C: New test. * g++.dg/lookup/error1.C: New test.
...@@ -9,5 +9,5 @@ template <class T> void make_pair(T x); ...@@ -9,5 +9,5 @@ template <class T> void make_pair(T x);
void foo(){ void foo(){
struct fps_chan_ID fps; // { dg-error "incomplete" "" } struct fps_chan_ID fps; // { dg-error "incomplete" "" }
make_pair(fps); // { dg-error "no matching function" "" } make_pair(fps); // { dg-bogus "no matching function" "" }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment