public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "danakj at orodu dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/107542] New: ICE in spaceship_comp_cat, at cp/method.cc:1055
Date: Sun, 06 Nov 2022 20:29:53 +0000	[thread overview]
Message-ID: <bug-107542-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 107542
           Summary: ICE in spaceship_comp_cat, at cp/method.cc:1055
           Product: gcc
           Version: 12.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danakj at orodu dot net
  Target Milestone: ---

Repro: https://godbolt.org/z/KPfsn8hPf

Reproduces in 12.2 and trunk on Godbolt.org.

Output:
<source>: In substitution of 'template<class T, class U>  requires  Ord<const
T*, const U*> constexpr auto operator<=>(const S<T>&, const S<U>&) [with T =
int; U = char]':
<source>:6:11:   required from here
<source>:6:11: internal compiler error: in spaceship_comp_cat, at
cp/method.cc:1055
    6 |     { lhs <=> rhs } -> std::same_as<std::strong_ordering>;
      |       ~~~~^~~~~~~
0x2393c6e internal_error(char const*, ...)
        ???:0
0xaa9b58 fancy_abort(char const*, int, char const*)
        ???:0
0xd4a507 cp_build_binary_op(op_location_t const&, tree_code, tree_node*,
tree_node*, int)
        ???:0
0xadb22c build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, int)
        ???:0
0xd3b412 build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node*, tree_node**, int)
        ???:0
0xb25576 tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xb27052 constraints_satisfied_p(tree_node*, tree_node*)
        ???:0
0xcdd84a fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool,
bool)
        ???:0
0xadaefe build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, int)
        ???:0
0xd3b412 build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node*, tree_node**, int)
        ???:0
0xb25576 tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xb2715f evaluate_concept_check(tree_node*)
        ???:0
0xb18962 maybe_constant_value(tree_node*, tree_node*, bool)
        ???:0
0xcfdb3f finish_unary_op_expr(unsigned int, tree_code, cp_expr, int)
        ???:0
0xc872a7 c_parse_file()
        ???:0
0xdd0579 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2022-11-06 20:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06 20:29 danakj at orodu dot net [this message]
2022-11-06 20:31 ` [Bug c++/107542] " pinskia at gcc dot gnu.org
2022-11-06 20:38 ` danakj at orodu dot net
2022-11-06 20:39 ` danakj at orodu dot net
2022-11-21 13:00 ` marxin at gcc dot gnu.org
2022-11-29 19:25 ` ppalka at gcc dot gnu.org
2022-11-30  0:25 ` cvs-commit at gcc dot gnu.org
2022-11-30  0:27 ` ppalka at gcc dot gnu.org
2022-12-19 16:54 ` cvs-commit at gcc dot gnu.org
2022-12-19 16:55 ` ppalka at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-107542-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).