Re: [PATCH] Fortran: Fix ICE-on-invalid in trans_code

Jerry D <[email protected]> Sat, 4 Jul 2026 15:35:55 -0700
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 7/4/26 2:53 PM, Sandra Loosemore wrote:
> While testing some WIP OpenMP patches, I ran into an ICE in trans_code after an 
> error in an OpenMP directive was diagnosed.  It was trying to use 
> SET_EXPR_LOCATION on error_mark_node, which isn't EXPR_P and doesn't have a 
> location field.  I think this fix is "obvious" but I'll wait a couple days 
> before pushing it in case anyone objects or has a better idea.
> 
> -Sandra

Hi Sandra,

That is pretty obvious, go ahead and commit. I have a number of patches with 
things like this. Little by little we fix them.

Thanks,

Jerry

May the Fourth be with you.