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

--- Comment #1 from Ivan Lazaric <ivan.lazaric.gcc at gmail dot com> ---
This might be more general actually
No reflection example:
```cpp
struct S;

template<auto M>
requires (M != nullptr)
void fn();

void use() {
    fn<(int S::*)nullptr>();
}
```

Compiler output:
```
<source>:8:26: error: no matching function for call to 'fn<-1>()'
```

Godbolt: https://godbolt.org/z/xdd34jsWr

Reply via email to