Bug 1504185 - g++ crashes
Summary: g++ crashes
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: DevTools
Classification: Red Hat
Component: clang
Version: go-toolset-7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 2.1
Assignee: Tom Stellard
QA Contact: Tilmann Scheller
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-19 15:50 UTC by Sterge
Modified: 2017-12-05 04:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
CentOS 7.4.1708 (Core)
Last Closed: 2017-12-05 04:34:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Preprocessed source code (1.72 MB, text/plain)
2017-10-19 15:50 UTC, Sterge
no flags Details
preprocessed c++ code (1.72 MB, text/x-csrc)
2017-10-19 15:51 UTC, Sterge
no flags Details

Description Sterge 2017-10-19 15:50:35 UTC
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:

Comment 1 Sterge 2017-10-19 15:51:30 UTC
Created attachment 1340827 [details]
preprocessed c++ code

Comment 2 Tom Stellard 2017-10-23 17:22:44 UTC
Did you mean to file this bug against the gcc component?

Comment 3 Sterge 2017-10-23 17:45:36 UTC
(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...

Comment 4 Tom Stellard 2017-12-05 04:34:04 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.