From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29424 invoked by alias); 17 Aug 2015 20:01:08 -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 29396 invoked by uid 48); 17 Aug 2015 20:01:03 -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: Mon, 17 Aug 2015 20:01: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: blocker X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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/msg01168.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67250 --- Comment #4 from Andrew Pinski --- (In reply to Jeff Hammond from comment #3) > Unfortunately, this does not change anything. > I saying gfortran defaults to that and you can use that option to cpp to get the same behavior. > > gfortran-5 -traditional-cpp -I. -E source.F > # 1 "source.F" > # 1 "" > # 1 "" > # 1 "source.F" > C > C OLD SCHOOL COMMENTS > C > subroutine xyz(stuff) > implicit none > > # 1 "header.fh" 1 > ! comment > integer foo > external foo > # 7 "source.F" 2 > integer stuff > integer err_##handle; integer l_##handle,k_##handle; > err_##handle=foo(100,#handle,l_##handle,k_##handle); if > (.not.err_##handle) call bar("PUSH"#handle,#100); > print*,stuff > return > end