[Bug fortran/124934] New: [fortran][doc] undocumented -Wextra warning "Assignment to contiguous pointer from non-contiguous target"

heiko at hexco dot de gcc-bugzilla@gcc.gnu.org
Sun Apr 19 20:44:43 GMT 2026


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

            Bug ID: 124934
           Summary: [fortran][doc] undocumented -Wextra warning
                    "Assignment to contiguous pointer from non-contiguous
                    target"
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: heiko at hexco dot de
  Target Milestone: ---

While scanning trunk (16.0 at commit eaeb0b2033b42df7163d06e0323f205953e9ccdf)
for all uses of the -Wextra option I found this
fortran/expr.cc:4892
        gfc_warning (OPT_Wextra, "Assignment to contiguous pointer from "
                                 "non-contiguous target at %L",
&rvalue->where);
which does not seem to be documented in the gfortran manual under -Wextra
and it does not have its own specific option (yet).

Thanks.


More information about the Gcc-bugs mailing list