From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16439 invoked by alias); 22 Apr 2012 20:34:47 -0000 Received: (qmail 16279 invoked by uid 22791); 22 Apr 2012 20:34:46 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,T_FRT_FREE X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Apr 2012 20:34:33 +0000 From: "slayoo at staszic dot waw.pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53077] New: suggestion to add the .f extension to the list of file extensions that trigger enabling of the preprocessor Date: Sun, 22 Apr 2012 20:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: slayoo at staszic dot waw.pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01863.txt.bz2 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