From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81249 invoked by alias); 18 Aug 2015 05:41:52 -0000 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 Received: (qmail 81215 invoked by uid 48); 18 Aug 2015 05:41:48 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67250] gfortran does not faithfully preprocess the way cpp does Date: Tue, 18 Aug 2015 05:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01181.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67250 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #8 from Andrew Pinski --- (In reply to Jeff Hammond from comment #7) > And your "obvious workaround" is in fact not one because it changes the > behavior of gfortran for Fortran source code and breaks the build in another > way. And even if it did solve the problem, why not make it automatic with a > flag to gfortran? > The only way is to use the workaround sorry. You could try -no-traditional-cpp . But as you said it will break the build in a different way and that is because the fortran code is not C code. > The Intel Fortran compiler behaves as desired by default. So. Using the C preprocessor is out side of the scope of the fortran standard so different compilers will act differently.