From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27224 invoked by alias); 29 Jan 2015 17:08:58 -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 27151 invoked by uid 48); 29 Jan 2015 17:08:47 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/64864] New: [5 Regression] preprocessor linemarkers break configure checks Date: Thu, 29 Jan 2015 17:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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-01/txt/msg03424.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64864 Bug ID: 64864 Summary: [5 Regression] preprocessor linemarkers break configure checks Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: dodji at gcc dot gnu.org For example (this happens for many projects that check for the boost version): ... checking for working strtod... yes checking for gettimeofday... yes checking for Boost headers version >= 1.36.0... yes checking for Boost's header version... configure: error: invalid value: boost_major_version= markus@x4 core % cat test.cpp #include boost-lib-version = BOOST_LIB_VERSION markus@x4 core % g++ -E test.cpp # 1 "test.cpp" # 1 "" # 1 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 1 "" 2 # 1 "test.cpp" # 1 "/usr/include/boost/version.hpp" 1 3 4 # 2 "test.cpp" 2 boost-lib-version = # 2 "test.cpp" 3 4 "1_56" markus@x4 core % /usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2/g++ -E test.cpp # 1 "test.cpp" # 1 "" # 1 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 1 "" 2 # 1 "test.cpp" # 1 "/usr/include/boost/version.hpp" 1 3 4 # 2 "test.cpp" 2 boost-lib-version = "1_56" I know that these linemarkers are valid. But is it really necessary that they appear in the middle of statements? Using -P is a workaround, that apparently nobody uses in configure scripts. See also PR64604.