public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53077] New: suggestion to add the .f extension to the list of file extensions that trigger enabling of the preprocessor
@ 2012-04-22 20:34 slayoo at staszic dot waw.pl
  2012-04-22 20:36 ` [Bug fortran/53077] " slayoo at staszic dot waw.pl
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: slayoo at staszic dot waw.pl @ 2012-04-22 20:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53077

             Bug #: 53077
           Summary: suggestion to add the .f extension to the list of file
                    extensions that trigger enabling of the preprocessor
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: slayoo@staszic.waw.pl


Hello,


$ cat test.f
#define print(x) print*, x
program test
  print('aqq')
end
$ gfortran -ffree-form test.f
Warning: test.f:1: Illegal preprocessor directive
test.f:3.8:

  print('aqq')
        1
Error: Missing leading left parenthesis in format string at (1)
$ mv test.f test.F
$ gfortran-mp-4.6 -ffree-form test.F && echo OK
OK



This behavior is consistent with the docs but it's quite misleading, especially
as the warning message might be understood as if there was something wrong
within the macro definition, and not with the fact that the macro is there at
all.

Why not turning on the preprocessor with .f extensions as well? 
(currently only the .F extension turns it on by default)

HTH,
Sylwester


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-12 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22 20:34 [Bug fortran/53077] New: suggestion to add the .f extension to the list of file extensions that trigger enabling of the preprocessor slayoo at staszic dot waw.pl
2012-04-22 20:36 ` [Bug fortran/53077] " slayoo at staszic dot waw.pl
2012-04-22 21:36 ` slayoo at staszic dot waw.pl
2012-04-23  1:17 ` pinskia at gcc dot gnu.org
2012-04-23  8:27 ` burnus at gcc dot gnu.org
2012-04-23 11:13 ` slayoo at staszic dot waw.pl
2014-02-08 14:54 ` [Bug fortran/53077] replace "Illegal preprocessor directive" message with "Ignoring preprocessor directive at %C. Use -cpp to enable the C preprocessor" (a patch by Tobias included) dominiq at lps dot ens.fr
2020-04-12 16:33 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).