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 middle-end/94339] [10 regression] ICE in tree_class_check_failed since r10-7344-gca6c722561ce9b9d Date: Fri, 27 Mar 2020 09:03:39 +0000 [thread overview] Message-ID: <bug-94339-4-NhghPWfRFY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94339-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94339 --- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:72809d6fe8e085440403ce125c51d01d6e7512b0 commit r10-7410-g72809d6fe8e085440403ce125c51d01d6e7512b0 Author: Jakub Jelinek <jakub@redhat.com> Date: Fri Mar 27 10:00:47 2020 +0100 c++: Handle COMPOUND_EXPRs in ocp_convert [PR94339] My recent change to get_narrower/warnings_for_convert_and_check broke the following testcase, warnings_for_convert_and_check is upset that expr is a COMPOUND_EXPR with INTEGER_CST at the rightmost operand, while result is a COMPOUND_EXPR with a NOP_EXPR of INTEGER_CST at the rightmost operand, it expects such conversions to be simplified. The easiest fix seems to be to handle COMPOUND_EXPRs in ocp_convert too, by converting the rightmost operand and recreating COMPOUND_EXPR(s) if that changed. The attr-copy-2.C change is a workaround for PR94346, where we now ICE on the testcase, while previously we'd ICE only if it contained a comma expression at the outer level rather than cast of a COMPOUND_EXPR to something. I'll defer that to Martin. 2020-03-27 Jakub Jelinek <jakub@redhat.com> PR c++/94339 * cvt.c (ocp_convert): Handle COMPOUND_EXPR by recursion on the second operand and creating a new COMPOUND_EXPR if anything changed. * g++.dg/other/pr94339.C: New test. * g++.dg/ext/attr-copy-2.C: Comment out failing tests due to PR94346.
next prev parent reply other threads:[~2020-03-27 9:03 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-26 9:39 [Bug middle-end/94339] New: [10 regression] ICE in tree_class_check_failed clyon at gcc dot gnu.org 2020-03-26 9:57 ` [Bug middle-end/94339] " rguenth at gcc dot gnu.org 2020-03-26 9:59 ` clyon at gcc dot gnu.org 2020-03-26 10:09 ` marxin at gcc dot gnu.org 2020-03-26 10:11 ` [Bug middle-end/94339] [10 regression] ICE in tree_class_check_failed since r10-7344-gca6c722561ce9b9d marxin at gcc dot gnu.org 2020-03-26 11:06 ` marxin at gcc dot gnu.org 2020-03-26 11:46 ` jakub at gcc dot gnu.org 2020-03-27 9:03 ` cvs-commit at gcc dot gnu.org [this message] 2020-03-27 20:18 ` jakub at gcc dot gnu.org 2020-03-27 21:31 ` cvs-commit 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-94339-4-NhghPWfRFY@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).