From: Patrick Palka Date: Thu, 19 Aug 2021 13:07:02 +0000 (-0400) Subject: c++: Fix PR number in testcase [PR101803] X-Git-Tag: upstream/12.2.0~5673 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4285ca3e1c4a6c9540dcdf1c4a71b99aba9bbfe8;p=platform%2Fupstream%2Fgcc.git 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 --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 7ba02be..75ee887 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 ebe73c1..3e330ac 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; };