Re: [PATCH] c++: class-head parsing and CPP_TEMPLATE_ID access [PR108275]

2023-01-05 Thread Jason Merrill via Gcc-patches
On 1/5/23 12:20, Patrick Palka wrote: When tentatively parsing what is really an elaborated-type-specifier first as a class-specifier, we may form a CPP_TEMPLATE_ID token that later gets reused in the fallback parse if the tentative parse fails. These special tokens also capture the access checks

Re: [PATCH] c++: class-head parsing and CPP_TEMPLATE_ID access [PR108275]

2023-01-05 Thread Patrick Palka via Gcc-patches
On Thu, 5 Jan 2023, Patrick Palka wrote: > When tentatively parsing what is really an elaborated-type-specifier > first as a class-specifier, we may form a CPP_TEMPLATE_ID token that > later gets reused in the fallback parse if the tentative parse fails. > These special tokens also capture the acc

[PATCH] c++: class-head parsing and CPP_TEMPLATE_ID access [PR108275]

2023-01-05 Thread Patrick Palka via Gcc-patches
When tentatively parsing what is really an elaborated-type-specifier first as a class-specifier, we may form a CPP_TEMPLATE_ID token that later gets reused in the fallback parse if the tentative parse fails. These special tokens also capture the access checks that have been deferred while parsing t