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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-07-27
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> EDG accepts it but Clang doesn't:
> 
> 84893.cc:7:5: error: no matching function for call to 'f'
>     f<bool>(g);
>     ^~~~~~~
> 84893.cc:2:6: note: candidate template ignored: failed template argument
> deduction
> void f(void(*)(T..., int)) { }
>      ^
> 1 error generated.

clang started to accept it in clang 7.

Confirmed.

Reply via email to