[Bug c++/84893] Rejects a valid code with variadic function template taking a function pointer
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 3 10:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84893
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|8.0.1 |8.1.0
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=83672
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
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.
More information about the Gcc-bugs
mailing list