public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pokechu022+gccbugzilla at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107755] ICE: in fold_convert_loc, at fold-const.c:2435, with -Wlogical-op, implicit user-defined conversion operator, template function, logical operator, and conditional operator Date: Sat, 19 Nov 2022 01:37:59 +0000 [thread overview] Message-ID: <bug-107755-4-1U0z46qW4h@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107755-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107755 Pokechu22 <pokechu022+gccbugzilla at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.3.0, 12.2.0, 4.8.1, | |9.4.0 Known to work| |4.7.4 --- Comment #1 from Pokechu22 <pokechu022+gccbugzilla at gmail dot com> --- Here are a few cases that would be useful to include in a test: ``` return (!false && (false ? a : b)); return (!true && (false ? a : b)); return (!false || (false ? a : b)); return (!true || (false ? a : b)); return (x && (y ? a : b)); return (x || (y ? a : b)); ``` As an aside, `(false | (false ? a : b))` (where a is bool and b is Foo) used to cause an ICE (confirmed in 4.7.4, 4.8.1, and 5.5). This was fixed in or before 6.1. I can't find a bug report corresponding to that issue either, but it probably should be verified that that doesn't regress either.
next prev parent reply other threads:[~2022-11-19 1:37 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-19 1:27 [Bug c++/107755] New: " pokechu022+gccbugzilla at gmail dot com 2022-11-19 1:37 ` pokechu022+gccbugzilla at gmail dot com [this message] 2022-11-21 8:53 ` [Bug c++/107755] " marxin at gcc dot gnu.org 2022-11-21 19:48 ` mpolacek at gcc dot gnu.org 2022-11-21 19:49 ` [Bug c++/107755] [10/11/12/13 Regression] " mpolacek at gcc dot gnu.org 2022-11-24 17:43 ` jakub at gcc dot gnu.org 2023-01-31 19:29 ` mpolacek at gcc dot gnu.org 2023-02-01 13:31 ` cvs-commit at gcc dot gnu.org 2023-02-01 13:43 ` cvs-commit at gcc dot gnu.org 2023-02-01 13:44 ` [Bug c++/107755] [10/11 " 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-107755-4-1U0z46qW4h@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).