class.c (instantiate_type): Downgrade errors for object-dependent memfn refs to pedwarn.
* class.c (instantiate_type): Downgrade errors for object-dependent memfn refs to pedwarn. From-SVN: r27072
This commit is contained in:
parent
e8ea7036e9
commit
d08940b2c2
@ -1,3 +1,8 @@
|
||||
1999-05-20 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* class.c (instantiate_type): Downgrade errors for object-dependent
|
||||
memfn refs to pedwarn.
|
||||
|
||||
1999-05-20 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* decl.c (grokdeclarator): Don't treat [] as indicating a
|
||||
|
@ -5015,15 +5015,15 @@ instantiate_type (lhstype, rhs, flags)
|
||||
field = OVL_FUNCTION (field);
|
||||
if (TREE_CODE (field) == FUNCTION_DECL)
|
||||
{
|
||||
cp_error ("object-dependent reference `%E' can only be used in a call",
|
||||
cp_pedwarn ("object-dependent reference `%E' can only be used in a call",
|
||||
DECL_NAME (field));
|
||||
cp_error (" to form a pointer to member function, say `&%T::%E'",
|
||||
cp_pedwarn (" to form a pointer to member function, say `&%T::%E'",
|
||||
t, DECL_NAME (field));
|
||||
}
|
||||
else
|
||||
cp_error ("object-dependent reference can only be used in a call");
|
||||
cp_pedwarn ("object-dependent reference can only be used in a call");
|
||||
}
|
||||
return error_mark_node;
|
||||
return r;
|
||||
}
|
||||
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user