public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103337] New: rejects-valid brace elision inside designated initializer
@ 2021-11-19 19:19 ppalka at gcc dot gnu.org
  2021-11-19 19:27 ` [Bug c++/103337] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-11-19 19:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103337

            Bug ID: 103337
           Summary: rejects-valid brace elision inside designated
                    initializer
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

struct op_t {
  struct put_t {
    int x;
  } put;
};

op_t x{0};       // OK
op_t y{.put=0};  // error: 'op_t::put_t' has no non-static data member named
'put'

GCC rejects the second initializer, but Clang and MSVC accept.

Doesn't appear to be a regression.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-23 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 19:19 [Bug c++/103337] New: rejects-valid brace elision inside designated initializer ppalka at gcc dot gnu.org
2021-11-19 19:27 ` [Bug c++/103337] " mpolacek at gcc dot gnu.org
2022-03-21 20:47 ` cvs-commit at gcc dot gnu.org
2022-03-21 20:55 ` jason at gcc dot gnu.org
2022-03-22  5:18 ` cvs-commit at gcc dot gnu.org
2022-03-23 19:37 ` cvs-commit 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).