public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/91319] Designated initializer doesn't support direct-initialization
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
@ 2021-03-15 17:22 ` mpolacek at gcc dot gnu.org
2021-03-15 17:23 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-03-15 17:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 99566 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/91319] Designated initializer doesn't support direct-initialization
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
2021-03-15 17:22 ` [Bug c++/91319] Designated initializer doesn't support direct-initialization mpolacek at gcc dot gnu.org
@ 2021-03-15 17:23 ` mpolacek at gcc dot gnu.org
2023-03-23 13:39 ` ppalka at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-03-15 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
CC| |mpolacek at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Mine for GCC 12.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/91319] Designated initializer doesn't support direct-initialization
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
2021-03-15 17:22 ` [Bug c++/91319] Designated initializer doesn't support direct-initialization mpolacek at gcc dot gnu.org
2021-03-15 17:23 ` mpolacek at gcc dot gnu.org
@ 2023-03-23 13:39 ` ppalka at gcc dot gnu.org
2023-08-30 18:26 ` cvs-commit at gcc dot gnu.org
2023-08-30 18:27 ` mpolacek at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-03-23 13:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ldalessandro at gmail dot com
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 106040 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/91319] Designated initializer doesn't support direct-initialization
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2023-03-23 13:39 ` ppalka at gcc dot gnu.org
@ 2023-08-30 18:26 ` cvs-commit at gcc dot gnu.org
2023-08-30 18:27 ` mpolacek at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-30 18:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319
--- Comment #5 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:4a92205ef1da044eaf9490e61787836a3abe7d6c
commit r14-3577-g4a92205ef1da044eaf9490e61787836a3abe7d6c
Author: Marek Polacek <polacek@redhat.com>
Date: Fri Aug 25 11:47:54 2023 -0400
c++: CWG 2359, wrong copy-init with designated init [PR91319]
This CWG clarifies that designated initializer support
direct-initialization.
Just be careful what Note 2 in [dcl.init.aggr]/4.2 says: "If the
initialization is by designated-initializer-clause, its form determines
whether copy-initialization or direct-initialization is performed." Hence
this patch sets CONSTRUCTOR_IS_DIRECT_INIT only when we are dealing with
".x{}", but not ".x = {}".
PR c++/91319
gcc/cp/ChangeLog:
* parser.cc (cp_parser_initializer_list): Set
CONSTRUCTOR_IS_DIRECT_INIT
when the designated initializer is of the .x{} form.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/desig30.C: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/91319] Designated initializer doesn't support direct-initialization
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2023-08-30 18:26 ` cvs-commit at gcc dot gnu.org
@ 2023-08-30 18:27 ` mpolacek at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-08-30 18:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91319
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-30 18:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91319-4@http.gcc.gnu.org/bugzilla/>
2021-03-15 17:22 ` [Bug c++/91319] Designated initializer doesn't support direct-initialization mpolacek at gcc dot gnu.org
2021-03-15 17:23 ` mpolacek at gcc dot gnu.org
2023-03-23 13:39 ` ppalka at gcc dot gnu.org
2023-08-30 18:26 ` cvs-commit at gcc dot gnu.org
2023-08-30 18:27 ` 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).