[Bug c++/125181] [13/14/15/16/17 Regression] variadic template function not allowing for function pointer which has a toplevel const argument to match with non-toplevel const argument
"waffl3x at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125181
Waffl3x <waffl3x at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |waffl3x at gcc dot gnu.org
--- Comment #3 from Waffl3x <waffl3x at gcc dot gnu.org> ---
Conversion also fails when converting to a variable, even in the
absence of deduction, despite the types being identical.
https://godbolt.org/z/bY118dGjP
```
template <typename... Ts>
void f(Ts const...) {}
void (*p)(int) = &f<int>;
```