This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21066] [4.1 Regression] template argument deduction finds false ambiguity


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-17 15:08 -------
Confirmed, reduced testcacse:
struct ff { ff(); int cmem(void) const; };
template <typename T>
int muv(T&, int (T::*)(void));
template <typename T>
int muv(T&, int (T::*)(void) const);
template <typename T>
int muv(const T&, int (T::*)(void) const);
int main()
{
    ff       f;
    const ff cf;
    muv(cf, &ff::cmem);
    muv(f,  &ff::cmem);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-17 15:08:58
               date|                            |
            Summary|Regression: template        |[4.1 Regression] template
                   |argument deduction finds    |argument deduction finds
                   |false ambiguity             |false ambiguity
   Target Milestone|---                         |4.1.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]