public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99565] New: Bogus identical branches warning when returning references to union members
@ 2021-03-12 20:08 johelegp at gmail dot com
  2021-03-15  8:31 ` [Bug c++/99565] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: johelegp at gmail dot com @ 2021-03-12 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99565
           Summary: Bogus identical branches warning when returning
                    references to union members
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/9qaz9W
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/9qaz9W.
```C++
struct A {
  union {
    int a;
    int b;
  };
  int& x() { return 0 ? a : b; }
};
```

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

end of thread, other threads:[~2021-03-25 15:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 20:08 [Bug c++/99565] New: Bogus identical branches warning when returning references to union members johelegp at gmail dot com
2021-03-15  8:31 ` [Bug c++/99565] " rguenth at gcc dot gnu.org
2021-03-15 16:49 ` johelegp at gmail dot com
2021-03-15 16:55 ` [Bug c++/99565] [11 Regression] " mpolacek at gcc dot gnu.org
2021-03-16 13:55 ` jakub at gcc dot gnu.org
2021-03-16 14:18 ` mpolacek at gcc dot gnu.org
2021-03-16 15:42 ` jakub at gcc dot gnu.org
2021-03-25 12:42 ` cvs-commit at gcc dot gnu.org
2021-03-25 15:59 ` 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).