------- Comment #1 from jason at gcc dot gnu dot org  2009-11-05 22:41 -------
That is, I think this should be ambiguous since the WP says that unused default
args aren't considered in partial ordering (14.6.6.2):

template<typename T, typename... Args>
int& f(const T&, Args...);

template<typename T>
float& f(const T&, double d = 2);

float& g() {
  return f(17);
}


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-05 22:41:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41958

Reply via email to