https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66968
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes maybe a dup of PR99 but it looks like all the examples in that bug involve an overload and using the parameter names from the wrong overload. Here it uses the parameter from a function that never participates in overload resolution.