public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration
@ 2021-10-05 16:52 mpolacek at gcc dot gnu.org
2021-10-05 16:52 ` [Bug c++/102617] " mpolacek at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-10-05 16:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617
Bug ID: 102617
Summary: [C++23] P2360R0 - Extend init-statement to allow
alias-declaration
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
See https://wg21.link/p2360r0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/102617] [C++23] P2360R0 - Extend init-statement to allow alias-declaration
2021-10-05 16:52 [Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration mpolacek at gcc dot gnu.org
@ 2021-10-05 16:52 ` mpolacek at gcc dot gnu.org
2021-10-26 15:35 ` cvs-commit at gcc dot gnu.org
2021-10-26 15:44 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-10-05 16:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |98940
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-10-05
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98940
[Bug 98940] Implement C++23 language features
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/102617] [C++23] P2360R0 - Extend init-statement to allow alias-declaration
2021-10-05 16:52 [Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration mpolacek at gcc dot gnu.org
2021-10-05 16:52 ` [Bug c++/102617] " mpolacek at gcc dot gnu.org
@ 2021-10-26 15:35 ` cvs-commit at gcc dot gnu.org
2021-10-26 15:44 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-26 15:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:5469d58d6620195c6275d11b474d686f5921c3ba
commit r12-4716-g5469d58d6620195c6275d11b474d686f5921c3ba
Author: Marek Polacek <polacek@redhat.com>
Date: Thu Oct 21 11:10:02 2021 -0400
c++: P2360R0: Extend init-stmt to allow alias-decl [PR102617]
The following patch implements C++23 P2360R0. This proposal merely
extends init-statement to contain alias-declaration. init-statement
is used in if/for/switch. It also removes the unsightly duplication
of code by calling cp_parser_init_statement twice.
PR c++/102617
gcc/cp/ChangeLog:
* parser.c (cp_parser_for): Maybe call cp_parser_init_statement
twice. Warn about range-based for loops with initializer here.
(cp_parser_init_statement): Don't duplicate code. Allow
alias-declaration in init-statement.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/init-stmt1.C: New test.
* g++.dg/cpp23/init-stmt2.C: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/102617] [C++23] P2360R0 - Extend init-statement to allow alias-declaration
2021-10-05 16:52 [Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration mpolacek at gcc dot gnu.org
2021-10-05 16:52 ` [Bug c++/102617] " mpolacek at gcc dot gnu.org
2021-10-26 15:35 ` cvs-commit at gcc dot gnu.org
@ 2021-10-26 15:44 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-10-26 15:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102617
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Implemented in GCC 12.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-26 15:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 16:52 [Bug c++/102617] New: [C++23] P2360R0 - Extend init-statement to allow alias-declaration mpolacek at gcc dot gnu.org
2021-10-05 16:52 ` [Bug c++/102617] " mpolacek at gcc dot gnu.org
2021-10-26 15:35 ` cvs-commit at gcc dot gnu.org
2021-10-26 15:44 ` mpolacek at gcc dot gnu.org
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).