https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67862
Bug ID: 67862 Summary: [concepts] ICE in tsubst, at cp/pt.c:12625 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ryan.burn at gmail dot com Target Milestone: --- Created attachment 36447 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36447&action=edit preprocessed code the attached code gives this trace: rnburn@localhost ~/bugs/tsubst_ice $ c++17 tsubst_ice.cpp In file included from /home/rnburn/proj/echo/numeric_array/unittest/map.cpp:1:0: /home/rnburn/proj/echo/numeric_array/include/echo/numeric_array/map.h: In function ‘void ____C_A_T_C_H____T_E_S_T____8()’: /home/rnburn/proj/echo/numeric_array/include/echo/numeric_array/map.h:22:16: internal compiler error: in tsubst, at cp/pt.c:12625 requires and_(cpt_FlatEvaluator<Evaluators>()...) ^ 0x66475d tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/pt.c:12625 0x826520 tsubst_compound_requirement ../../gcc/gcc/cp/constraint.cc:1538 0x826520 tsubst_requirement ../../gcc/gcc/cp/constraint.cc:1566 0x826520 tsubst_requirement_body ../../gcc/gcc/cp/constraint.cc:1585 0x826520 tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/constraint.cc:1616 0x67f312 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/gcc/cp/pt.c:16396 0x66aad1 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/gcc/cp/pt.c:15044 0x67a6db gen_elem_of_pack_expansion_instantiation ../../gcc/gcc/cp/pt.c:10496 0x67a6db tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/pt.c:10700 0x680e4f tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/gcc/cp/pt.c:15733 0x66aad1 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/gcc/cp/pt.c:15044 0x823207 satisfy_predicate_constraint ../../gcc/gcc/cp/constraint.cc:1694 0x823207 satisfy_constraint_1 ../../gcc/gcc/cp/constraint.cc:1898 0x823f76 satisfy_constraint ../../gcc/gcc/cp/constraint.cc:1949 0x8240da constraints_satisfied_p(tree_node*) ../../gcc/gcc/cp/constraint.cc:2056 0x5ff57d add_function_candidate ../../gcc/gcc/cp/call.c:1995 0x6007b9 add_template_candidate_real ../../gcc/gcc/cp/call.c:3118 0x600e8c add_template_candidate ../../gcc/gcc/cp/call.c:3160 0x600e8c add_candidates ../../gcc/gcc/cp/call.c:5316 0x603503 perform_overload_resolution ../../gcc/gcc/cp/call.c:4012 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.