[Bug fortran/123782] False error in pointer to contiguous component selection
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 24 18:28:57 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123782
--- Comment #12 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Ivan Pribec from comment #10)
> > Does someone want to ask the Intel people for their opinion?
>
> I asked and received the reply
>
> "the compile time error makes sense to me that "any part other than final"
> refers to "a" in "a%x", and "a" it's a 1-d array of size 5, so its rank is
> 1, and it's hard for the compiler to justify if "a%x" is contiguous at
> compile time when assigning it to an explicitly declared CONTIGUOUS pointer."
>
> and the further justification that gfortran also flagged this as an error.
Thanks Ivan. Intel and gfortran reject the code and flang
accepts it. Does anyone have access to NAG?
More information about the Gcc-bugs
mailing list