public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7472] c++: fix PR110102 backport
@ 2023-06-23 17:18 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2023-06-23 17:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b7e9dd97c80bc26beaaaf1fe8788c505efb710ba

commit r13-7472-gb7e9dd97c80bc26beaaaf1fe8788c505efb710ba
Author: Jason Merrill <jason@redhat.com>
Date:   Fri Jun 23 13:15:32 2023 -0400

    c++: fix PR110102 backport
    
    The argument for is_xible changed from list to vec in GCC 14.
    
    gcc/cp/ChangeLog:
    
            * call.cc (maybe_init_list_as_array): Build a list.

Diff:
---
 gcc/cp/call.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/call.cc b/gcc/cp/call.cc
index 6dc925ecc5b..149ae766e00 100644
--- a/gcc/cp/call.cc
+++ b/gcc/cp/call.cc
@@ -4273,9 +4273,8 @@ maybe_init_list_as_array (tree elttype, tree init)
 
   /* We can't do this if copying from the initializer_list would be
      ill-formed.  */
-  tree copy_argtypes = make_tree_vec (1);
-  TREE_VEC_ELT (copy_argtypes, 0)
-    = cp_build_qualified_type (elttype, TYPE_QUAL_CONST);
+  tree copy_argtypes = build_tree_list
+    (NULL_TREE, cp_build_qualified_type (elttype, TYPE_QUAL_CONST));
   if (!is_xible (INIT_EXPR, elttype, copy_argtypes))
     return NULL_TREE;

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

only message in thread, other threads:[~2023-06-23 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 17:18 [gcc r13-7472] c++: fix PR110102 backport Jason Merrill

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