public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Alex Coplan <acoplan@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] cp: Allow conversion between enum classes and intcap
Date: Mon, 13 Jun 2022 10:14:06 +0000 (GMT)	[thread overview]
Message-ID: <20220613101406.34E65384B12B@sourceware.org> (raw)

https://gcc.gnu.org/g:7d43eaed4908450faa60e2f29d2a462498909a6e

commit 7d43eaed4908450faa60e2f29d2a462498909a6e
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Tue May 10 10:03:47 2022 +0100

    cp: Allow conversion between enum classes and intcap

Diff:
---
 gcc/cp/typeck.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 5bab85e412b..dc3fe39d941 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -7663,8 +7663,10 @@ build_static_cast_1 (location_t loc, tree type, tree expr, bool c_cast_p,
      types which are integral, floating, or enumeration types can be
      performed.  */
   if ((INTEGRAL_OR_ENUMERATION_TYPE_P (type)
+       || INTCAP_TYPE_P (type)
        || SCALAR_FLOAT_TYPE_P (type))
       && (INTEGRAL_OR_ENUMERATION_TYPE_P (intype)
+	  || INTCAP_TYPE_P (intype)
 	  || SCALAR_FLOAT_TYPE_P (intype)))
     {
       if (processing_template_decl)


                 reply	other threads:[~2022-06-13 10:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220613101406.34E65384B12B@sourceware.org \
    --to=acoplan@gcc.gnu.org \
    --cc=gcc-cvs@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).