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

--- Comment #3 from Chen Yuanwei <522024330006 at smail dot nju.edu.cn> ---
Here is another case.
```c
struct B {
    virtual void foo();
};

struct C : B {
    void foo() override { bar(); }
    void bar() { static_cast<B*>(this)->foo(); }
};

int main() {
    C c;
    c.foo();
}
```

Reply via email to