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
This commit is contained in:
Mark Mitchell 1998-12-10 13:35:36 +00:00 committed by Mark Mitchell
parent 353f10d599
commit 513e9d13b4
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* cp-tree.h (most_specialized_instantiation): New function.

View File

@ -5304,6 +5304,7 @@ instantiate_type (lhstype, rhs, complain)
function);
cp_error (" to form a pointer to member function, say `&%T::%D'",
t, DECL_NAME (function));
return error_mark_node;
}
mark_used (function);

View File

@ -10,7 +10,7 @@ struct a {
void bar( double );
void bar( float );
void foo( void (a::*member)(float) );
void foo( void (a::*member)(float) ); // ERROR - candidate
};
a::a()