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++/13178] Bogus C++ error message referring to operator 1


------- Additional Comments From giovannibajo at libero dot it  2004-01-16 01:37 -------
More reduced testcase:

----------------------------------------
class C
{
  template<typename U> 
  operator U();
};

int fn (C c) 
{ 
   return C::operator float(c); 
}
----------------------------------------
pr13178.cc:9: error: no matching function for call to `C::operator 1(C&)'

Looks like a pretty printing issue.

-- 


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


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