public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94907] [10/11 Regression] ICE: Segmentation fault (in check_return_expr) since r10-8016-gbce54ed494fd0e61 Date: Thu, 07 May 2020 13:28:10 +0000 [thread overview] Message-ID: <bug-94907-4-ZdEXw2ULwz@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94907-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94907 --- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:3d4c7e05de438fb0672f376e628c18812eea8982 commit r10-8114-g3d4c7e05de438fb0672f376e628c18812eea8982 Author: Jakub Jelinek <jakub@redhat.com> Date: Wed May 6 23:36:31 2020 +0200 c++: Don't synthesize sfk_comparison method multiple times [PR94907] On the following testcase we ICE, because synthesize_method is called twice on the same sfk_comparison method fndecl, the first time it works fine because start_preparsed_function in that case sets both current_function_decl and cfun, but second time it is called it only sets the former and keeps cfun NULL, so we ICE when trying to store current_function_returns_value. I think it is just wrong to call synthesize_method multiple times, and most synthesize_method callers avoid that by not calling it if DECL_INITIAL is already set, so this patch does that too. 2020-05-06 Jakub Jelinek <jakub@redhat.com> PR c++/94907 * method.c (defaulted_late_check): Don't call synthesize_method on constexpr sfk_comparison if it has been called on it already. * g++.dg/cpp2a/spaceship-synth8.C: New test.
next prev parent reply other threads:[~2020-05-07 13:28 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-01 18:08 [Bug c++/94907] New: ICE: Segmentation fault (in check_return_expr) asolokha at gmx dot com 2020-05-01 18:30 ` [Bug c++/94907] " mpolacek at gcc dot gnu.org 2020-05-04 5:42 ` [Bug c++/94907] ICE: Segmentation fault (in check_return_expr) since r10-8016-gbce54ed494fd0e61 marxin at gcc dot gnu.org 2020-05-04 6:27 ` [Bug c++/94907] [10/11 Regression] " rguenth at gcc dot gnu.org 2020-05-04 13:44 ` jakub at gcc dot gnu.org 2020-05-06 21:37 ` cvs-commit at gcc dot gnu.org 2020-05-07 11:56 ` jakub at gcc dot gnu.org 2020-05-07 13:28 ` cvs-commit at gcc dot gnu.org [this message] 2020-05-07 13:35 ` jakub 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-94907-4-ZdEXw2ULwz@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).