https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99244

            Bug ID: 99244
           Summary: internal compiler error: in tsubst_copy, at
                    cp/pt.c:16581
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.lelyakin at googlemail dot com
  Target Milestone: ---

g++ -std=c++20 -fmodules-ts -x c++-system-header atomic
g++ -std=c++20 -fmodules-ts -x c++-system-header thread
----
In file included from /usr/local/include/c++/11.0.0/bits/atomic_base.h:38,
                 from /usr/local/include/c++/11.0.0/atomic:41,
of module /usr/local/include/c++/11.0.0/atomic, imported at
/usr/local/include/c++/11.0.0/stop_token:34,
        included from /usr/local/include/c++/11.0.0/thread:42:
/usr/local/include/c++/11.0.0/bits/move.h: In instantiation of ‘constexpr
std::_Require<std::__not_<std::__is_tuple_like<_Tp> >,
std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&,
_Tp&) [with _Tp = std::thread::id;
std::_Require<std::__not_<std::__is_tuple_like<_Tp> >,
std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/local/include/c++/11.0.0/bits/std_thread.h:172:33:   required from here
/usr/local/include/c++/11.0.0/bits/move.h:199:19: internal compiler error: in
tsubst_copy, at cp/pt.c:16581
  199 |       _Tp __tmp = _GLIBCXX_MOVE(__a);
      |                   ^~~~~~~~~~~~~
0x70931e tsubst_copy
        ../../gcc/gcc/cp/pt.c:16581
0xaf64bf tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/gcc/cp/pt.c:20719
0xaf6f10 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/gcc/cp/pt.c:19629
0xaf669b tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/gcc/cp/pt.c:20143
0xb01608 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:19107
0xb08341 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:18132
0xb08341 tsubst_init
        ../../gcc/gcc/cp/pt.c:16491
0xb06481 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:18316
0xb04606 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:18147
0xb041c6 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:18498
0xb0a5b7 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/gcc/cp/pt.c:18132
0xb0a5b7 instantiate_body
        ../../gcc/gcc/cp/pt.c:25862
0xb0b610 instantiate_decl(tree_node*, bool, bool)
        ../../gcc/gcc/cp/pt.c:26151
0xb2dc93 instantiate_pending_templates(int)
        ../../gcc/gcc/cp/pt.c:26230
0x9f60d3 c_parse_final_cleanups()
        ../../gcc/gcc/cp/decl2.c:4962
-----
g++ (GCC) 11.0.0 20210223 (experimental)

Reply via email to