Re: [PATCH] gimple: Verify that lhs of an assign is NOT a function [PR118796]

2025-03-26 Thread Richard Biener
On Wed, Mar 26, 2025 at 7:22 AM Andrew Pinski wrote: > > On Tue, Mar 25, 2025 at 10:59 PM Richard Biener > wrote: > > > > > > > > > Am 26.03.2025 um 04:47 schrieb Andrew Pinski : > > > > > > This adds a simple verification so that the LHS of an assignment is > > > not a function decl. SRA and FR

Re: [PATCH] gimple: Verify that lhs of an assign is NOT a function [PR118796]

2025-03-25 Thread Andrew Pinski
On Tue, Mar 25, 2025 at 10:59 PM Richard Biener wrote: > > > > > Am 26.03.2025 um 04:47 schrieb Andrew Pinski : > > > > This adds a simple verification so that the LHS of an assignment is > > not a function decl. SRA and FRE will produce an ICE for this anyways > > so let's catch it earlier. Thi

Re: [PATCH] gimple: Verify that lhs of an assign is NOT a function [PR118796]

2025-03-25 Thread Richard Biener
> Am 26.03.2025 um 04:47 schrieb Andrew Pinski : > > This adds a simple verification so that the LHS of an assignment is > not a function decl. SRA and FRE will produce an ICE for this anyways > so let's catch it earlier. This showed up because the fortran front-end > didn't translate the fun

[PATCH] gimple: Verify that lhs of an assign is NOT a function [PR118796]

2025-03-25 Thread Andrew Pinski
This adds a simple verification so that the LHS of an assignment is not a function decl. SRA and FRE will produce an ICE for this anyways so let's catch it earlier. This showed up because the fortran front-end didn't translate the function name into the result decl in some cases. Bootstrapped and