[Boost-bugs] [Boost C++ Libraries] #12210: compiling PCH with gcc 6.1 fails

Subject: [Boost-bugs] [Boost C++ Libraries] #12210: compiling PCH with gcc 6.1 fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-17 06:50:00


#12210: compiling PCH with gcc 6.1 fails
---------------------+------------------------------
 Reporter: dirk@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.61.0
 Severity: Problem | Keywords:
---------------------+------------------------------
 Math libraries PCH fail with gcc 6.1:


 {{{
 "g++" -ftemplate-depth-128 -fno-inline -Wall -g -m64 -fvisibility=hidden
 -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED
 -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-
 static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o
 "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-
 static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp"

 g++: internal compiler error: Segmentation fault (program cc1plus)
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <http://gcc.gnu.org/bugs.html> for instructions.
 }}}


 When adding --std=c++11 I get a warning but it's working
 (default mode of gcc 6.1 is c++14)

 {{{
 "g++" --std=c++11 -ftemplate-depth-128 -fno-inline -Wall -g -m64
 -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1
 -DBOOST_BUILD_PCH_ENABLED -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-
 static/runtime-link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o
 "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-
 static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp"
 libs/math/build/../src/tr1/truncl.cpp:6:21: warning:
 bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-
 static/../src/tr1/pch.hpp.gch: not used because `__cpp_aggregate_nsdmi'
 not defined [-Winvalid-pch]
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12210>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC