Commit 1052cd65 by Jason Merrill Committed by Jason Merrill

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
parent c2b9a5c4
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))
......
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