[Patch, fortran] Fix PR19101 Missing ampersand in continued character literals

Janne Blomqvist jblomqvi@cc.hut.fi
Tue Mar 14 20:34:00 GMT 2006


On Sat, Mar 11, 2006 at 09:10:45PM -0800, Jerry DeLisle wrote:
> :ADDPATCH fortran:
> 
> Borrowing heavily from Steve's tab patch I have arrived at the attached 
> patch. This version gives warning of a missing ampersand with -Wampersand, 
> -Wall, -std-f95, or -pedantic.  Otherwise no warning is given.
> 
> The default behavior is to assume the character literal continues at the 
> first non-whitespace, non-comment character encountered after the initial 
> continuation ampersand at the end of the previous line.
> 
> OK for trunk and 4.1.1?  Test case will be provided.

:REVIEWMAIL:

AFAICT, the rule hasn't been changed for F2003, so the warning should
also be enabled for -std=f2003.

With that change (remeber to update the documentation part of the
patch appropriately too), OK for trunk and 4.1.1 a week later.



-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060314/fbebb309/attachment.sig>


More information about the Gcc-patches mailing list