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:
parent
353f10d599
commit
513e9d13b4
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue