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

            Bug ID: 105035
           Summary: regression ICE segmentation fault with
                    -Wduplicated-cond
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimitar.yordanov at sap dot com
  Target Milestone: ---

Hi,

we hit an ICE with the following reduced example:

cat > foo.cc << EOF

class a {
  struct b {
    int c;
    int f;
  };
  template <typename> void d();
  b e;
};
template <typename> void a::d() {
  int g;
  if (&g == &e.c)
    ;
  else if (&g == &e.f)
    ;
}

EOF

g++ -Wduplicated-cond -c foo.cc

Best wishes
Dimitar

Reply via email to