public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108597] New: internal compiler error with -Wduplicated-cond
@ 2023-01-30 12:11 mserdarsanli at gmail dot com
  2023-01-30 12:15 ` [Bug c++/108597] " mserdarsanli at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mserdarsanli at gmail dot com @ 2023-01-30 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108597
           Summary: internal compiler error with -Wduplicated-cond
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mserdarsanli at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/Kdvd5hzYK

compile below with -Wduplicated-cond and it will crash

template <typename T>
struct MyStruct {

    void check(int &x) {
        if (&x == &_a) {
        } else if (&x == &_b) {
        }
    }

    int _a;
    int _b;
};

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

end of thread, other threads:[~2023-01-31 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 12:11 [Bug c++/108597] New: internal compiler error with -Wduplicated-cond mserdarsanli at gmail dot com
2023-01-30 12:15 ` [Bug c++/108597] " mserdarsanli at gmail dot com
2023-01-30 12:44 ` [Bug c++/108597] [11/12/13 Regression] " pinskia at gcc dot gnu.org
2023-01-30 14:05 ` mpolacek at gcc dot gnu.org
2023-01-31 16:37 ` cvs-commit at gcc dot gnu.org
2023-01-31 16:55 ` cvs-commit at gcc dot gnu.org
2023-01-31 16:55 ` 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).