[Patch, fortran] PR19260 & not required when splitting a token in continuation
Jerry DeLisle
jvdelisle@verizon.net
Wed Sep 20 05:00:00 GMT 2006
:REVIEWMAIL:
Jerry DeLisle wrote:
>
> i) It is not perfect. In the case of splitting tokens, it will allow
> the matchers to flag an error for all cases except where the token
> continues on the first character of the next line. I have not figured
> out how to test for that yet.
>
I got an inspiration. The attached updated patch inserts a space when the '&'
is missing. This then catches the case of splitting the token by a continuation
mentioned in the F95 Standard 3.3.1.3.1:
"If a lexical token is split across the end of a line, the ï¬rst nonblank
character on the ï¬rst following noncomment line shall be an "&" immediately
followed by the successive characters of the split token."
Regression tested. I will update the test case continuation_2.f90 appropriately.
OK for trunk?
Regards,
Jerry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr19260a.diff
Type: text/x-patch
Size: 1382 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060920/6e5948c2/attachment.bin>
More information about the Fortran
mailing list