Re: [PATCH] c++: noexcept-spec from nested class confusion [PR109761]

2023-05-09 Thread Jason Merrill via Gcc-patches
On 5/9/23 12:35, Patrick Palka wrote: When processing a noexcept-spec from a nested class after completion of the outer class (since a noexcept-spec is a complete-class context), we pass to noexcept_override_late_checks the outer class type instead of the nested class type, which leads to bogus e

[PATCH] c++: noexcept-spec from nested class confusion [PR109761]

2023-05-09 Thread Patrick Palka via Gcc-patches
When processing a noexcept-spec from a nested class after completion of the outer class (since a noexcept-spec is a complete-class context), we pass to noexcept_override_late_checks the outer class type instead of the nested class type, which leads to bogus errors in the below test. This patch fix