]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix tab not ignored in print statement.
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 2 Jan 2026 04:52:55 +0000 (20:52 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 2 Jan 2026 05:05:08 +0000 (21:05 -0800)
commit81bef9ee8d8c18c4a40d4ef67ec9b310a8a326c9
tree0e681c29ea993e9fa89c07558fe83810a6800b6e
parent672b580d85810dff1c7f6203a7a6f66f00a95096
Fortran: Fix tab not ignored in print statement.

PR fortran/101399

gcc/fortran/ChangeLog:

* io.cc (match_io): If the -Wtabs option is used, then Issue a
warning for a <tab> character following a 'print' statement;
otherwise ignore the <tab>.

gcc/testsuite/ChangeLog:

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