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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another example:
```
struct A {
  template<class T>
  const A& f(T);
  const A& g(int);
  template<class T>
  const A& h();
};

struct B : public A {
  using A::f;
  using A::g;
  using A::h;
  template<class T>
  const int f(T);
  const int g(int);
  template<class T=int>
  const int h();
};

int main() {
  B b;
  b.g(0);
  b.f(0);
  b.h();
}
```

Only `b.f(0)` is rejected as ambiguous on GCC 15+.

Reply via email to