Menu

#633 boost::thread crashes the C++ compiler

v1.0 (example)
open
nobody
None
5
2017-06-30
2017-06-30
No

Compilation of some boost::thread examples crashes the MinGW-W64 C++ compiler. This bug is reproducible with 32 and 64 bit compilers of versions 6 & 7 (the last one checked is 7.1.0). The last version known to pass this test is 5.4.0.

Boost versions: 1.63 & 1.64

MinGW tag is: g++ (i686-win32-dwarf-rev0, Built by MinGW-W64 project) 7.1.0

g++ -IZ:/whpc/dist/win32/boost/include -c -MMD -MP -MT parallel_quick_sort.o -MT parallel_quick_sort.d -o parallel_quick_sort.o parallel_quick_sort.cpp
In file included from Z:/whpc/dist/win32/boost/include/boost/thread/detail/thread.hpp:23:0,
from Z:/whpc/dist/win32/boost/include/boost/thread/thread_only.hpp:22,
from Z:/whpc/dist/win32/boost/include/boost/thread/thread.hpp:12,
from Z:/whpc/dist/win32/boost/include/boost/thread/executors/basic_thread_pool.hpp:16,
from parallel_quick_sort.cpp:15:
Z:/whpc/dist/win32/boost/include/boost/thread/detail/invoke.hpp: In function 'decltype ((forward<A0>)(boost::detail::invoke::a0).boost::detail::invoke::f) boost::detail::invoke(Fp&&, A0&&) [with Fp = void (boost::executors::basic_thread_pool::)(); A0 = boost::executors::basic_thread_pool]':
Z:/whpc/dist/win32/boost/include/boost/thread/detail/invoke.hpp:102:43: internal compiler error: in gimplify_expr, at gimplify.c:11996
return (boost::forward<A0>(a0)).f;
^
Preprocessed source is attached.

1 Attachments

Discussion


Log in to post a comment.