re PR fortran/89724 (Fortran diagnostics give wrong line number because of math-vecto...
authorJakub Jelinek <jakub@redhat.com>
Sat, 16 Mar 2019 21:18:49 +0000 (22:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 16 Mar 2019 21:18:49 +0000 (22:18 +0100)
commit985a72168a64267df8ad4c73337b3f678787174e
tree0369523f0acf587871766814d44fbe1aedb85986
parent0581f5b2ad38ddee2b7de73b0e0efa101d60183a
re PR fortran/89724 (Fortran diagnostics give wrong line number because of math-vector-fortran.h header file)

PR fortran/89724
* scanner.c (load_line): Remove linenum and current_line static
variables, add warned_tabs automatic variable.  Use current_file->line
instead of current_line and warned_tabs boolean to avoid diagnosing
tabs multiple times on the same line.

* gfortran.dg/continuation_15.f90: New test.
* gfortran.dg/continuation_16.f90: New test.

From-SVN: r269734
gcc/fortran/ChangeLog
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/continuation_15.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/continuation_16.f90 [new file with mode: 0644]