Re: [PATCH] c++: Defer access checking when processing bases [PR82613]

2021-01-19 Thread Jason Merrill via Gcc-patches
On 1/18/21 12:31 AM, Patrick Palka wrote: When parsing the base-clause of a class declaration, we need to defer access checking until the entire base-clause has been seen, so that access can be properly checked relative to the scope of the class with all its bases attached. This allows us to acc

[PATCH] c++: Defer access checking when processing bases [PR82613]

2021-01-17 Thread Patrick Palka via Gcc-patches
When parsing the base-clause of a class declaration, we need to defer access checking until the entire base-clause has been seen, so that access can be properly checked relative to the scope of the class with all its bases attached. This allows us to accept the declaration of struct D from Example