public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Patrick Palka <ppalka@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3024] c++: Fix PR number in testcase [PR101803]
Date: Thu, 19 Aug 2021 13:10:34 +0000 (GMT)	[thread overview]
Message-ID: <20210819131034.707E839B7074@sourceware.org> (raw)

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; };


                 reply	other threads:[~2021-08-19 13:10 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=20210819131034.707E839B7074@sourceware.org \
    --to=ppalka@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).