C++ PATCH to resolve_offset_ref

Jason Merrill jason@redhat.com
Wed Dec 5 08:45:00 GMT 2001


This patch fixes a problem with Nathan's earlier fix for PR 3145; when
converting to a base class in order to access one of its fields, the
conversion should not be affected by access control, or access/using
declarations would be meaningless.

Test in g++.dg/inherit/access1.C.

Tested i686-pc-linux-gnu.

2001-12-04  Jason Merrill  <jason@redhat.com>

	* init.c (resolve_offset_ref): Don't check access for the base
	conversion to access a FIELD_DECL.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011205/59347d07/attachment.bin>


More information about the Gcc-patches mailing list