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

            Bug ID: 128499
           Summary: internal compiler error: in operator*, at cp/cp-tree.h
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 0599jiangyc at gmail dot com
  Target Milestone: ---

The following code:
```cpp
class A {
  virtual int foo ();
};
class B : A {
  template <typename> void foo ();
  class foo {};
};
```

Resulted in this output:
```
<source>:4:7: internal compiler error: in operator*, at cp/cp-tree.h:916
```

Trunk reproducer (`-Woverloaded-virtual`): https://godbolt.org/z/T13bz5Mqh

Reply via email to