scanner.c (preprocessor_line): Call linemap_add after a line directive that changes...
authorJeff Law <law@gcc.gnu.org>
Mon, 7 May 2018 18:24:59 +0000 (12:24 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 7 May 2018 18:24:59 +0000 (12:24 -0600)
commit0d1f4de97d9b51e04f6678448fb7c796a8fba6b1
treed02b9d2d698cff5b5b95e470ba9ab2a48256219c
parenta989f6378b1b08aa3145c7bd77477282ddc5e553
scanner.c (preprocessor_line): Call linemap_add after a line directive that changes the current filename.

* scanner.c (preprocessor_line): Call linemap_add after a line
directive that changes the current filename.

* gfortran.dg/linefile.f90: New test.

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