[patch, fortram] PR64506 FORMAT Parse Error with Continuation Line

Jerry DeLisle jvdelisle@charter.net
Mon Feb 2 04:44:00 GMT 2015


On 02/01/2015 01:02 PM, Tobias Burnus wrote:
> Jerry DeLisle wrote:
>> The attached patch fixes this issue.
>> Regression tested on x86-64.
>> New test case attached.
>>
>> OK for trunk?
> Looks ok (together with a changelog for the test case).
>
> However, I tried a similar fixed-form program and it failed similarly. I think
> you need a similar fix (in the same function) for fixed-form source code. See
> attachment for an example.
>
> Tobias
>

Here is an updated patch that addresses the fixed form source example you provided.

Also regression tested with no failures.

I have an additional test case attached and will do a ChangeLog for the test cases.

OK?

Regards,

Jerry

2015-02-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64506
	* scanner.c (gfc_next_char_literal): For free form source,
	check for '!' and if found, clear the comment and go back
	and get the next character. For fixed form source, skip the
	rest of the line.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr64506.diff
Type: text/x-patch
Size: 1018 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150202/2fb059ac/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: continuation_14.f
Type: text/x-fortran
Size: 957 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150202/2fb059ac/attachment-0001.bin>


More information about the Fortran mailing list