Re: [PATCH v3] c++: fn redecl in fn scope wrongly accepted [PR116239]

2024-09-05 Thread Jason Merrill
On 9/5/24 11:10 AM, Marek Polacek wrote: On Thu, Sep 05, 2024 at 10:42:22AM -0400, Jason Merrill wrote: On 9/4/24 1:18 PM, Marek Polacek wrote: On Wed, Sep 04, 2024 at 12:28:49PM -0400, Jason Merrill wrote: + if (!validate_constexpr_redeclaration (alias, decl)) +return; + retrofit

[PATCH v3] c++: fn redecl in fn scope wrongly accepted [PR116239]

2024-09-05 Thread Marek Polacek
On Thu, Sep 05, 2024 at 10:42:22AM -0400, Jason Merrill wrote: > On 9/4/24 1:18 PM, Marek Polacek wrote: > > On Wed, Sep 04, 2024 at 12:28:49PM -0400, Jason Merrill wrote: > > > > > + if (!validate_constexpr_redeclaration (alias, decl)) > > > > +return; > > > > + > > > > retrofit_lang_de