public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94478] New: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 Date: Fri, 03 Apr 2020 18:20:27 +0000 [thread overview] Message-ID: <bug-94478-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94478 Bug ID: 94478 Summary: [10 Regression] ICE in comptypes, at cp/typeck.c:1486 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-10.0.1-alpha20200329 snapshot (g:60c254b279e8e8443b8ad26cc46b9e4084cff66c) ICEs when compiling the following testcase, extracted from test/CXX/class/class.compare/class.compare.default/p1.cpp from the clang 10.0.0 test suite, w/ -std=c++2a: struct B {}; bool operator==(const B&, const B&) = default; % g++-10.0.1 -std=c++2a -c kknpryrr.cpp kknpryrr.cpp:2:39: internal compiler error: in comptypes, at cp/typeck.c:1486 2 | bool operator==(const B&, const B&) = default; | ^~~~~~~ 0x68caf4 comptypes(tree_node*, tree_node*, int) /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/typeck.c:1486 0x965416 early_check_defaulted_comparison /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/method.c:1133 0x965416 defaultable_fn_check(tree_node*) /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/method.c:2997 0x90e088 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/decl.c:7554 0x9b878b cp_parser_init_declarator /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:20909 0x998b56 cp_parser_simple_declaration /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13731 0x9c3302 cp_parser_declaration /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:13430 0x9c3a9f cp_parser_translation_unit /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:4731 0x9c3a9f c_parse_file() /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/cp/parser.c:43944 0xadbadb c_common_parse_file() /var/tmp/portage/sys-devel/gcc-10.0.1_alpha20200329/work/gcc-10-20200329/gcc/c-family/c-opts.c:1186
next reply other threads:[~2020-04-03 18:20 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-03 18:20 asolokha at gmx dot com [this message] 2020-04-06 6:33 ` [Bug c++/94478] " rguenth at gcc dot gnu.org 2020-04-06 6:51 ` marxin at gcc dot gnu.org 2020-04-07 16:55 ` mpolacek at gcc dot gnu.org 2020-04-08 12:56 ` cvs-commit at gcc dot gnu.org 2020-04-08 12:57 ` mpolacek 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-94478-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: linkBe 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).