This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/5416: Need flag for cpp to allow fortran comments
- From: fago at caltech dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 17 Jan 2002 19:35:53 -0000
- Subject: preprocessor/5416: Need flag for cpp to allow fortran comments
- Reply-to: fago at caltech dot edu
>Number: 5416
>Category: preprocessor
>Synopsis: Need flag for cpp to allow fortran comments
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 17 11:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Matt Fago
>Release: 3.0.2
>Organization:
>Environment:
System: Linux phlebas 2.4.17 #2 Fri Jan 11 13:00:38 PST 2002 i686 unknown
Architecture: i686
>Description:
CPP does not currently understand fortran-type comments. I understand the reasoning behind this (as cpp is primarily for C), but it can cause considerable inconvienence when cpp is used with fortran source. I have a very large project in Fortran (written elsewhere) that contains hundreds of unmatched quotes in the fortran comments. It is necessary (although not too difficult) to deal with these. It would be much nicer in the future if I could simply tell cpp to ignore
the comments.
>How-To-Repeat:
process a fortran file with the line:
C What's wrong with this comment?
>Fix:
Add a "-fortran-comments" type flag to cpp that instructs cpp to correctly deal with fortran style comments.
>Release-Note:
>Audit-Trail:
>Unformatted: