[patch,fortran] PR19261 continuation character illegal as first non-blank character in statement
Jerry DeLisle
jvdelisle@verizon.net
Fri Oct 6 06:57:00 GMT 2006
:ADDPATCH fortran:
The attached patch adds warnings for illegal use of '&' in lines. This follows
from F95 Standard 3.3.1.3. With -pedantic errors are given instead of warnings.
I moved the note about the unavailable error machinery to the top of load_line
since it applies to more than one place in this function.
If someone can figure out how to get that test case to work with the deja-magic,
I would appreciate it. Can't get rid of the excess warnings tests with -S
Regression tested and libgomp tested OK. The libgomp tests require Jacub's
patch that fixes the PR19260 fix breakage.
OK to commit to 4.2?
Regards,
Jerry
2006-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/19261
* scanner.c (load_line): Add checks for illegal use of '&' and issue
warnings. Issue errors with -pedantic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr19261.diff
Type: text/x-patch
Size: 3376 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061006/035b558d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: continuation_7.f90
Type: text/x-fortran
Size: 270 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061006/035b558d/attachment-0001.bin>
More information about the Fortran
mailing list