public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3024] c++: Fix PR number in testcase [PR101803]
@ 2021-08-19 13:10 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2021-08-19 13:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4285ca3e1c4a6c9540dcdf1c4a71b99aba9bbfe8

commit r12-3024-g4285ca3e1c4a6c9540dcdf1c4a71b99aba9bbfe8
Author: Patrick Palka <ppalka@redhat.com>
Date:   Thu Aug 19 09:07:02 2021 -0400

    c++: Fix PR number in testcase [PR101803]
    
    Also clarify the description of CONSTRUCTOR_BRACES_ELIDED_P.
    
            PR c++/101803
    
    gcc/cp/ChangeLog:
    
            * cp-tree.h (CONSTRUCTOR_IS_PAREN_INIT): Clarify comment.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/cpp2a/class-deduction-aggr12.C: Fix PR number.

Diff:
---
 gcc/cp/cp-tree.h                                    | 4 ++--
 gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr12.C | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 7ba02bed0fb..75ee88721b4 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -4503,8 +4503,8 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter)
 #define CONSTRUCTOR_IS_PAREN_INIT(NODE) \
   (CONSTRUCTOR_CHECK(NODE)->base.private_flag)
 
-/* True if reshape_init built this CONSTRUCTOR to undo the brace elision
-   of another CONSTRUCTOR.  This flag is used during C++20 aggregate
+/* True if reshape_init built this sub-CONSTRUCTOR to undo the brace elision
+   of the original CONSTRUCTOR.  This flag is used during C++20 aggregate
    CTAD.  */
 #define CONSTRUCTOR_BRACES_ELIDED_P(NODE) \
   (CONSTRUCTOR_CHECK (NODE)->base.protected_flag)
diff --git a/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr12.C b/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr12.C
index ebe73c1d817..3e330ac122d 100644
--- a/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr12.C
+++ b/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr12.C
@@ -1,4 +1,4 @@
-// PR c++/101820
+// PR c++/101803
 // { dg-do compile { target c++20 } }
 
 struct Inner { int i = 0; };


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

only message in thread, other threads:[~2021-08-19 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19 13:10 [gcc r12-3024] c++: Fix PR number in testcase [PR101803] Patrick Palka

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