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++/101030] [9/10/11/12 Regression] ICE with -Wconversion and a?:b extension in template argument
Date: Wed, 30 Mar 2022 14:23:32 +0000	[thread overview]
Message-ID: <bug-101030-4-SRmuBZmjnN@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101030-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:5db9ce171019f8915885cebd5cc5f4101bb926e6

commit r12-7922-g5db9ce171019f8915885cebd5cc5f4101bb926e6
Author: Marek Polacek <polacek@redhat.com>
Date:   Tue Mar 29 14:36:55 2022 -0400

    c-family: ICE with -Wconversion and A ?: B [PR101030]

    This patch fixes a crash in conversion_warning on a null expression.
    It is null because the testcase uses the GNU A ?: B extension.  We
    could also use op0 instead of op1 in this case, but it doesn't seem
    to be necessary.

            PR c++/101030

    gcc/c-family/ChangeLog:

            * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call
            conversion_warning when OP1 is null.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/cond5.C: New test.

  parent reply	other threads:[~2022-03-30 14:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11 12:24 [Bug c++/101030] New: gcc internal error with Wconversion chrishair85 at gmail dot com
2021-08-12 23:19 ` [Bug c++/101030] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2021-08-12 23:33 ` [Bug c++/101030] [9/10/11/12 Regression] ICE with -Wconversion and a?:b extension in template argument pinskia at gcc dot gnu.org
2022-01-17 14:36 ` rguenth at gcc dot gnu.org
2022-03-29 14:51 ` mpolacek at gcc dot gnu.org
2022-03-30 14:23 ` cvs-commit at gcc dot gnu.org [this message]
2022-03-30 14:24 ` [Bug c++/101030] [9/10/11 " mpolacek at gcc dot gnu.org
2022-03-30 14:27 ` cvs-commit at gcc dot gnu.org
2022-03-30 14:28 ` [Bug c++/101030] [9/10 " 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-101030-4-SRmuBZmjnN@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).