Re: [PATCH] Fortran: fix ICE on LOC intrinsic with polymorphic argument [PR125606]

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 6/6/26 1:20 PM, Harald Anlauf wrote:
> Dear all,
> 
> this patch fixes a 15/16/17 regression when using the LOC() intrinsic
> on SELECT TYPE temporaries, where gfc_is_simply_contiguous could
> return false and gfc_conv_array_parameter would create unnecessarily
> messy code that lead to an ICE.
> 
> I looked at how C_LOC solved this, and adjusted gfc_conv_intrinsic_loc
> accordingly.
> 
> Regtested on x86_64-pc-linux-gnu.  OK for mainline / 16 / 15?
> 
> Thanks,
> Harald
> 

Yes, looks good.

Thanks Harald.

Jerry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.