public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] cp: Allow conversion between enum classes and intcap
@ 2022-06-13 10:14 Alex Coplan
  0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2022-06-13 10:14 UTC (permalink / raw)
  To: gcc-cvs

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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-13 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 10:14 [gcc(refs/vendors/ARM/heads/morello)] cp: Allow conversion between enum classes and intcap Alex Coplan

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).