Commit 513e9d13 by Mark Mitchell Committed by Mark Mitchell

class.c (instantiate_type): Return error_mark_node rather than junk.

	* class.c (instantiate_type): Return error_mark_node rather than
	junk.

From-SVN: r24240
parent 353f10d5
1998-12-10 Mark Mitchell <mark@markmitchell.com>
* class.c (instantiate_type): Return error_mark_node rather than
junk.
1998-12-09 Mark Mitchell <mark@markmitchell.com> 1998-12-09 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (most_specialized_instantiation): New function. * cp-tree.h (most_specialized_instantiation): New function.
......
...@@ -5304,6 +5304,7 @@ instantiate_type (lhstype, rhs, complain) ...@@ -5304,6 +5304,7 @@ instantiate_type (lhstype, rhs, complain)
function); function);
cp_error (" to form a pointer to member function, say `&%T::%D'", cp_error (" to form a pointer to member function, say `&%T::%D'",
t, DECL_NAME (function)); t, DECL_NAME (function));
return error_mark_node;
} }
mark_used (function); mark_used (function);
......
...@@ -10,7 +10,7 @@ struct a { ...@@ -10,7 +10,7 @@ struct a {
void bar( double ); void bar( double );
void bar( float ); void bar( float );
void foo( void (a::*member)(float) ); void foo( void (a::*member)(float) ); // ERROR - candidate
}; };
a::a() a::a()
......
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