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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, there's no conversion to bool in the concept, and it crashes in a
completely different place.

92541-c1.cc: In instantiation of 'struct f<0>':
92541-c1.cc:5:15:   required from here
92541-c1.cc:3:54: internal compiler error: in tsubst, at cp/pt.c:15142
    3 | template <int> struct f { template <b c> friend auto g(c, f); };
      |                                                      ^
0x6714e6 tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:15142
0xa867eb tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:13125
0xa792a4 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:18999
0xa6d5d7 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:18590
0x93fc56 tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/constraint.cc:2349
0xa97e94 tsubst_friend_function
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:10846
0xa97e94 instantiate_class_template_1
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:11975
0xa97e94 instantiate_class_template(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/pt.c:12040
0xae172d complete_type(tree_node*)
        /home/jwakely/src/gcc/gcc/gcc/cp/typeck.c:137
0xab168e finish_compound_literal(tree_node*, tree_node*, int, fcl_t)
        /home/jwakely/src/gcc/gcc/gcc/cp/semantics.c:2926
0xa1751f cp_parser_functional_cast
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:29391
0xa31834 cp_parser_postfix_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:7134
0xa3a21f cp_parser_unary_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:8514
0xa11b9f cp_parser_cast_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9405
0xa123d9 cp_parser_binary_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9508
0xa13dfe cp_parser_assignment_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:9813
0xa12e0d cp_parser_constant_expression
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:10107
0xa133d1 cp_parser_initializer_clause
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:23104
0xa175f7 cp_parser_initializer
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:23042
0xa40871 cp_parser_init_declarator
        /home/jwakely/src/gcc/gcc/gcc/cp/parser.c:20750
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to