https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67337
Bug ID: 67337 Summary: Segmentation fault on a template class Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bastien.noverraz at gmail dot com Target Milestone: --- Created attachment 36249 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36249&action=edit Proprocessor file (bzip'd, sorry, too big) A Segmentation fault is produced when compiling the project. This error does not appears when using the 4.8.4 version. Specific error message : In file included from /home/xxx/dev/synthese/riv/server/src/12_security/UserTableSync.cpp:28:0: /home/xxx/dev/synthese/riv/server/src/10_db/ReplaceQuery.h: In instantiation of ‘void synthese::db::ReplaceQuery<TableSync>::addFrameworkField(const typename T<void>::Type&) [with T = synthese::DateField; TableSync = synthese::security::UserTableSync; typename T<void>::Type = boost::gregorian::date]’: /home/xxx/dev/synthese/riv/server/src/12_security/UserTableSync.cpp:445:1: required from here /home/xxx/dev/synthese/riv/server/src/10_db/ReplaceQuery.h:89:9: internal compiler error: Segmentation fault void addFrameworkField( ^ The compiler : GNU C++ (GCC) version 5.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 9ed1d81099b98de89457560501a9ea0c Configure options : COLLECT_GCC=/usr/bin/g++ Target: x86_64-unknown-linux-gnu Configured with: /build/gcc/src/gcc-5.2.0/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible Thread model: posix Command line : COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'BOOST_ALL_DYN_LINK' '-D' 'FUSION_MAX_MAP_SIZE=40' '-D' 'FUSION_MAX_VECTOR_SIZE=40' '-D' 'HAVE_CURL' '-D' 'PNG_NO_MMX_CODE' '-D' 'UNIX' '-D' 'WITH_MYSQL' '-D' '_12_security_EXPORTS' '-g' '-fPIC' '-I' '/opt/boost_1_57_0/dist/include' '-I' '/home/xxx/dev/synthese/riv/server/3rd/dev/proj/src/src' '-I' '/home/xxx/dev/synthese/riv/build-arch-gc5/3rd/dev/geos/src/headers' '-I' '/home/xxx/dev/synthese/riv/server/3rd/dev/geos/src/headers' '-I' '/home/xxx/dev/synthese/riv/server/src' '-I' '/home/xxx/dev/synthese/riv/build-arch-gc5/src' '-I' '/home/xxx/dev/synthese/riv/server/src/00_framework' '-I' '/home/xxx/dev/synthese/riv/server/src/01_util' '-I' '/home/xxx/dev/synthese/riv/server/src/05_html' '-I' '/home/xxx/dev/synthese/riv/server/src/06_openstreetmap' '-I' '/home/xxx/dev/synthese/riv/server/src/07_lexical_matcher' '-I' '/home/xxx/dev/synthese/riv/server/src/10_db' '-I' '/home/xxx/dev/synthese/riv/server/src/10_db/101_sqlite' '-I' '/home/xxx/dev/synthese/riv/server/src/10_db/103_svn' '-I' '/home/xxx/dev/synthese/riv/server/src/11_cms' '-I' '/home/xxx/dev/synthese/riv/server/src/11_interfaces' '-I' '/home/xxx/dev/synthese/riv/server/src/12_security' '-I' '/home/xxx/dev/synthese/riv/server/src/13_dblog' '-I' '/home/xxx/dev/synthese/riv/server/src/14_admin' '-I' '/home/xxx/dev/synthese/riv/server/src/15_server' '-I' '/home/xxx/dev/synthese/riv/server/src/16_impex' '-I' '/home/xxx/dev/synthese/riv/server/src/17_messages' '-I' '/home/xxx/dev/synthese/riv/server/src/18_graph' '-I' '/home/xxx/dev/synthese/riv/server/src/19_inter_synthese' '-I' '/home/xxx/dev/synthese/riv/server/src/20_tree' '-I' '/home/xxx/dev/synthese/riv/server/src/30_fare' '-I' '/home/xxx/dev/synthese/riv/server/src/31_calendar' '-I' '/home/xxx/dev/synthese/riv/server/src/32_geography' '-I' '/home/xxx/dev/synthese/riv/server/src/33_algorithm' '-I' '/home/xxx/dev/synthese/riv/server/src/34_road' '-I' '/home/xxx/dev/synthese/riv/server/src/35_pt' '-I' '/home/xxx/dev/synthese/riv/server/src/37_pt_operation' '-I' '/home/xxx/dev/synthese/riv/server/src/38_vehicle' '-I' '/home/xxx/dev/synthese/riv/server/src/39_map' '-I' '/home/xxx/dev/synthese/riv/server/src/40_pdf_cms' '-I' '/home/xxx/dev/synthese/riv/server/src/51_resa' '-I' '/home/xxx/dev/synthese/riv/server/src/52_forum' '-I' '/home/xxx/dev/synthese/riv/server/src/53_pt_journey_planner' '-I' '/home/xxx/dev/synthese/riv/server/src/54_departure_boards' '-I' '/home/xxx/dev/synthese/riv/server/src/55_timetables' '-I' '/home/xxx/dev/synthese/riv/server/src/56_pt_website' '-I' '/home/xxx/dev/synthese/riv/server/src/58_hiking' '-I' '/home/xxx/dev/synthese/riv/server/src/59_road_journey_planner' '-I' '/home/xxx/dev/synthese/riv/server/src/60_analysis' '-I' '/home/xxx/dev/synthese/riv/server/src/61_data_exchange' '-I' '/home/xxx/dev/synthese/riv/server/src/62_regulation' '-I' '/home/xxx/dev/synthese/riv/server/src/63_settings' '-I' '/home/xxx/dev/synthese/riv/server/src/10_db/102_mysql' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Winit-self' '-o' 'CMakeFiles/12_security.dir/UserTableSync.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' Project : https://projects.open-transport.org/projects/synthese3 Distribution : ArchLinux, x86_64