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

            Bug ID: 114392
           Summary: Address of overloaded function with requires
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egor.pugin at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/jfs98fhKK

clang, msvc seem to work.

```
template <auto N>
struct A {
    static void call() requires (N == 0) {
    }
    static void call(int x) requires (N == 1) {
    }
};

int main() {
    (&A<0>::call)();
    (&A<1>::call)(5);
}
```

Reply via email to