mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 12:49:27 +08:00
search.c (get_matching_virtual): Notice virtual bases when sorrying about covariant returns.
* search.c (get_matching_virtual): Notice virtual bases when sorrying about covariant returns. From-SVN: r15732
This commit is contained in:
parent
c2b9a5c49d
commit
1052cd6573
@ -1,5 +1,8 @@
|
||||
Fri Sep 26 00:22:56 1997 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* search.c (get_matching_virtual): Notice virtual bases when sorrying
|
||||
about covariant returns.
|
||||
|
||||
* parse.y (member_init): Also imply typename here. Remove ancient
|
||||
extension for initializing base members.
|
||||
|
||||
|
@ -2197,7 +2197,8 @@ get_matching_virtual (binfo, fndecl, dtorp)
|
||||
{
|
||||
tree binfo = get_binfo (b, d, 1);
|
||||
if (binfo != error_mark_node
|
||||
&& ! BINFO_OFFSET_ZEROP (binfo))
|
||||
&& (! BINFO_OFFSET_ZEROP (binfo)
|
||||
|| TREE_VIA_VIRTUAL (binfo)))
|
||||
sorry ("adjusting pointers for covariant returns");
|
||||
}
|
||||
if (TYPE_READONLY (d) > TYPE_READONLY (b))
|
||||
|
Loading…
Reference in New Issue
Block a user