This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran] Fix PR23661, allow PRINT with format variable again
- From: Tobias dot Schlueter at Physik dot Uni-Muenchen dot DE
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Sep 2005 16:13:53 +0200
- Subject: [gfortran] Fix PR23661, allow PRINT with format variable again
PR23661 happened because of the new code to handle namelists in PRINT
statements. Unfortunately, this code had a shortcoming in that if a symbol
which is not a namelist is encountered, the parser would not back up correctly,
leaving the following matchers with a nonsensical line which they rightfully
refused.
The attached patch fixes this and also adds a check that there's a blank between
a PRINT statement and the namelist name in free form source code.
Bubblestrapped and tested, a number of testcases is also included. OK for
mainline and 4.0?
- Tobi