Re: [PATCH] c++: access of dtor named by qualified template-id [PR100918]

2021-06-05 Thread Jason Merrill via Gcc-patches
On 6/4/21 5:08 PM, Patrick Palka wrote: Here, when resolving the destructor named by Inner::~Inner (which is valid only before C++20) we end up in cp_parser_lookup_name to look up the name Inner relative to the scope Inner. The lookup naturally finds the injected-class-name Inner, and because

[PATCH] c++: access of dtor named by qualified template-id [PR100918]

2021-06-04 Thread Patrick Palka via Gcc-patches
Here, when resolving the destructor named by Inner::~Inner (which is valid only before C++20) we end up in cp_parser_lookup_name to look up the name Inner relative to the scope Inner. The lookup naturally finds the injected-class-name Inner, and because is_template is true, we adjust this lookup