[Bug c++/96242] ICE conditionally noexcept defaulted comparison

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 20 15:34:41 GMT 2020


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-07-20
             Status|UNCONFIRMED                 |NEW
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Please include the information requested at https://gcc.gnu.org/bugs (the link
is printed in the GCC output for the ICE for this reason).

$ gcc -S -std=c++20 pr96242.C 
pr96242.C:6:29: internal compiler error: in nothrow_spec_p, at cp/except.c:1177
    6 | using Y = decltype(X{} == X{});
      |                             ^
0xaabc67 nothrow_spec_p(tree_node const*)
        /src/gcc/master/gcc/cp/except.c:1177
0x92a14a set_flags_from_callee(tree_node*)
        /src/gcc/master/gcc/cp/call.c:328
0x92a483 build_call_a(tree_node*, int, tree_node**)
        /src/gcc/master/gcc/cp/call.c:365
0x94c2e8 build_cxx_call(tree_node*, int, tree_node**, int, tree_node*)
        /src/gcc/master/gcc/cp/call.c:9630
0x94a77b build_over_call
        /src/gcc/master/gcc/cp/call.c:9134
0x93f1f2 build_new_op_1
        /src/gcc/master/gcc/cp/call.c:6334
0x940055 build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node**, int)
        /src/gcc/master/gcc/cp/call.c:6598
0xcc1e1b build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node**, int)
        /src/gcc/master/gcc/cp/typeck.c:4281
0xb4e9d7 cp_parser_binary_expression
        /src/gcc/master/gcc/cp/parser.c:9793
0xb4ee96 cp_parser_assignment_expression
        /src/gcc/master/gcc/cp/parser.c:9933
0xb4f251 cp_parser_expression
        /src/gcc/master/gcc/cp/parser.c:10101
0xb598ad cp_parser_decltype_expr
        /src/gcc/master/gcc/cp/parser.c:14903
0xb59ae4 cp_parser_decltype
        /src/gcc/master/gcc/cp/parser.c:14996
0xb5f08c cp_parser_simple_type_specifier
        /src/gcc/master/gcc/cp/parser.c:18084
0xb5e79f cp_parser_type_specifier
        /src/gcc/master/gcc/cp/parser.c:17860
0xb67ae6 cp_parser_type_specifier_seq
        /src/gcc/master/gcc/cp/parser.c:22466
0xb6755b cp_parser_type_id_1
        /src/gcc/master/gcc/cp/parser.c:22283
0xb678a9 cp_parser_type_id
        /src/gcc/master/gcc/cp/parser.c:22362
0xb63009 cp_parser_alias_declaration
        /src/gcc/master/gcc/cp/parser.c:20099
0xb57280 cp_parser_block_declaration
        /src/gcc/master/gcc/cp/parser.c:13602
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.


More information about the Gcc-bugs mailing list