]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
fortran [PR122957] DTIO incompatibility with -fdefault-interger-8
authorSteve Kargl <kargl@gcc.gnu.org>
Mon, 22 Dec 2025 02:32:46 +0000 (18:32 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 22 Dec 2025 21:59:09 +0000 (13:59 -0800)
commit8ff212d10acb46c770195af9185396b021f7aa4c
tree547807c61f99f29edb3467fabde2e22dc46d67e1
parent692ca18d491ec2337f50a1788866106dcb597901
fortran [PR122957] DTIO incompatibility with -fdefault-interger-8

The -fdefault-integer-8 option is optional to assist with legacy
fortran codes. It is not a Standard requirement and is not
compatible with the newer user defined derived type I/O.

PR fortran/122957

gcc/fortran/ChangeLog:

* interface.cc (gfc_match_generic_spec): Issue an error
so that users do not use -fdefault-integer-8 with DTIO.

gcc/testsuite/ChangeLog:

* gfortran.dg/pr122957.f90: New test.
gcc/fortran/interface.cc
gcc/testsuite/gfortran.dg/pr122957.f90 [new file with mode: 0644]