https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97837
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed| |2020-11-17 --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Confirmed. 97837.C: In instantiation of ‘S< <template-parameter-1-1> >::~S() requires is_rvalue_reference<...auto...>(*(S< <template-parameter-1-1> >*)this) [with <template-parameter-1-1> = int]’: 97837.C:10:8: required from here 97837.C:7:40: internal compiler error: in tsubst_copy, at cp/pt.c:16450 7 | requires(std::is_rvalue_reference(*this)); | ^~~~ 0xc8dd45 tsubst_copy /home/mpolacek/src/gcc/gcc/cp/pt.c:16450 0xca546b tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:20535 0xc9fc00 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:19476 0xc9f9d6 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:19454 0xc88f3c tsubst_tree_list(tree_node*, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.c:15217 0xca401d tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:20306 0xca00af tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:19532 0xc9d976 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /home/mpolacek/src/gcc/gcc/cp/pt.c:18932 0xa4f3f8 satisfy_atom /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2718 0xa4f738 satisfy_constraint_r /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2781 0xa4f7b8 satisfy_constraint /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2801 0xa4f85d satisfy_associated_constraints /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2819 0xa4fc73 satisfy_declaration_constraints /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2908 0xa4fe25 constraint_satisfaction_value /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2950 0xa4ffca constraints_satisfied_p(tree_node*) /home/mpolacek/src/gcc/gcc/cp/constraint.cc:2987 0xb1644f mark_used(tree_node*, int) /home/mpolacek/src/gcc/gcc/cp/decl2.c:5592 0xb17102 mark_used(tree_node*) /home/mpolacek/src/gcc/gcc/cp/decl2.c:5726 0xad0236 register_dtor_fn(tree_node*) /home/mpolacek/src/gcc/gcc/cp/decl.c:8846 0xb0f69b one_static_initialization_or_destruction /home/mpolacek/src/gcc/gcc/cp/decl2.c:4042 0xb0fbe8 do_static_initialization_or_destruction /home/mpolacek/src/gcc/gcc/cp/decl2.c:4128