https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60531
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Jun 4 14:48:38 2019 New Revision: 271910 URL: https://gcc.gnu.org/viewcvs?rev=271910&root=gcc&view=rev Log: PR c++/60531 - Wrong error about unresolved overloaded function For PR60531, GCC wrongly rejects function templates with explicitly specified template arguments as overloaded. They are resolved by resolve_nondeduced_context, which is normally called by cp_default_conversion through decay_conversion, but the latter have extra effects making them unusable here. Calling the former directly does work. * typeck.c (cp_build_binary_op): See if overload can be resolved. (cp_build_unary_op): Ditto. * g++.dg/template/operator15.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/operator15.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c