[Bug c++/78753] non-ambiguous overload resolution with function template partial ordering rules

ed at catmur dot co.uk gcc-bugzilla@gcc.gnu.org
Mon Jul 24 20:03:00 GMT 2017


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

Ed Catmur <ed at catmur dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ed at catmur dot co.uk

--- Comment #1 from Ed Catmur <ed at catmur dot co.uk> ---
I believe this was fixed by CWG 1395
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1395

> 11 - If, after considering the above, function template F is at least as specialized as function template G and vice-versa, and if G has a trailing parameter pack for which F does not have a corresponding parameter, and if F does not have a trailing parameter pack, then F is more specialized than G.


More information about the Gcc-bugs mailing list