public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108474] New: static structured binding undefined reference
@ 2023-01-20  0:09 pinskia at gcc dot gnu.org
  2023-01-20  0:23 ` [Bug c++/108474] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-20  0:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108474
           Summary: static structured binding undefined reference
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: link-failure, wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take this c++20 (-std=c++20):
```
struct t
{
  int i, j;
};
t y;
static auto [i, j] = y;
int &r = i;
int s = i;
int *t = &i;
int main() {}
```

This fails in a similar way as PR 53932 but this is for structued bindings
rather than static anonymous unions.

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

end of thread, other threads:[~2023-05-04  7:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20  0:09 [Bug c++/108474] New: static structured binding undefined reference pinskia at gcc dot gnu.org
2023-01-20  0:23 ` [Bug c++/108474] " pinskia at gcc dot gnu.org
2023-01-20 10:06 ` jakub at gcc dot gnu.org
2023-01-24 10:32 ` cvs-commit at gcc dot gnu.org
2023-02-10 17:47 ` cvs-commit at gcc dot gnu.org
2023-05-02 20:14 ` cvs-commit at gcc dot gnu.org
2023-05-03 15:21 ` cvs-commit at gcc dot gnu.org
2023-05-04  7:23 ` jakub 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).