public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113788] New: Deducing this is broken with structured binding
@ 2024-02-06 16:43 hewillk at gmail dot com
  2024-02-06 17:13 ` [Bug c++/113788] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hewillk at gmail dot com @ 2024-02-06 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113788
           Summary: Deducing this is broken with structured binding
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

GCC accepts the following:

struct S {
  int a, b;
};

int main() {
  S s = {1, 2};
  this auto& [a, b] = s;
  return b;
}

Thanks.

https://godbolt.org/z/34xTee6sx

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

end of thread, other threads:[~2024-02-07  9:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 16:43 [Bug c++/113788] New: Deducing this is broken with structured binding hewillk at gmail dot com
2024-02-06 17:13 ` [Bug c++/113788] " mpolacek at gcc dot gnu.org
2024-02-06 17:15 ` jakub at gcc dot gnu.org
2024-02-06 17:31 ` mpolacek at gcc dot gnu.org
2024-02-06 17:34 ` jakub at gcc dot gnu.org
2024-02-06 17:48 ` jakub at gcc dot gnu.org
2024-02-06 21:35 ` cvs-commit at gcc dot gnu.org
2024-02-06 21:35 ` jakub at gcc dot gnu.org
2024-02-07  9:46 ` redi 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).