Created attachment 1340826 [details] Preprocessed source code Description of problem: Compiler (g++) crash Version-Release number of selected component (if applicable): g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) How reproducible: Preprocessed source attached Steps to Reproduce: 1. Use the attached preprocessed code 2. If not good, please contact me for initial srouce code 3. Actual results: c++ -g -std=c++11 -I. -I/home/szis/dev/cppInfrastructure/src/ -I/home/szis/dev/cppInfrastructure/include/ -fpermissive -c /home/szis/dev/cppInfrastructure/src/main.cpp -o /home/szis/dev/cppInfrastructure/src/main.o In file included from /usr/include/c++/4.8.2/thread:39:0, from /home/szis/dev/cppInfrastructure/include/utils/Logger.h:10, from /home/szis/dev/cppInfrastructure/src/main.cpp:8: /usr/include/c++/4.8.2/functional: In instantiation of ‘typename std::result_of<_Functor(_ArgTypes ...)>::type std::_Bind_simple<_Callable(_Args ...)>::_M_invoke(std::_Index_tuple<_Indices ...>) [with long unsigned int ..._Indices = {}; _Callable = FileReader<T>::Go() const [with T = double]::__lambda2; _Args = {}; typename std::result_of<_Functor(_ArgTypes ...)>::type = void]’: /usr/include/c++/4.8.2/functional:1720:36: required from ‘std::_Bind_simple<_Callable(_Args ...)>::result_type std::_Bind_simple<_Callable(_Args ...)>::operator()() [with _Callable = FileReader<T>::Go() const [with T = double]::__lambda2; _Args = {}; std::_Bind_simple<_Callable(_Args ...)>::result_type = void]’ /usr/include/c++/4.8.2/thread:115:13: required from ‘void std::thread::_Impl<_Callable>::_M_run() [with _Callable = std::_Bind_simple<FileReader<T>::Go() const [with T = double]::__lambda2()>]’ /home/szis/dev/cppInfrastructure/src/main.cpp:79:1: required from here /usr/include/c++/4.8.2/functional:1731:63: internal compiler error: in tsubst_copy, at cp/pt.c:12137 return std::forward<_Callable>(std::get<0>(_M_bound))( ^ Expected results: An object file. Additional info:
Created attachment 1340827 [details] preprocessed c++ code
Did you mean to file this bug against the gcc component?
(In reply to Tom Stellard from comment #2) > Did you mean to file this bug against the gcc component? Yes indeed! Apologies if I got it wrong...
It looks like you are using centos, so in that case you should refile this at: bugs.centos.org If you are using RHEL or Fedora then please refile using the correct OS/Component.