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;
};

Reply via email to