[Bug fortran/123782] False error in pointer to contiguous component selection

ivan.pribec at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 24 00:44:00 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123782

--- Comment #7 from Ivan Pribec <ivan.pribec at gmail dot com> ---
$ flang -pedantic foo.f90
./foo.f90:16:4: warning: Target of CONTIGUOUS pointer association is not known
to be contiguous [-Wpointer-to-possible-noncontiguous]
     c => a%x   ! False error?
     ^^^^^^^^
./foo.f90:12:33: Declaration of 'c'
     real, pointer, contiguous :: c(:)


More information about the Gcc-bugs mailing list