[gnu.g++.bug] g++ allows another ambigous type conversion.

schmidt%crimee.ics.uci.edu@PARIS.ICS.UCI.EDU ("Douglas C. Schmidt") (01/13/89)

Hi,

   Same situation, different example.  This is from page 22
of R.B. Murray's article:   

----------------------------------------
class T1 {};
class T2 {};

overload func;
void func(T1);
void func(T2);

class S {
public:
   operator T1();
   operator T2();   
};

main ( ) {
   S s;
   func(s);
}
----------------------------------------

G++ doesn't complain, but cfront does:

----------------------------------------
CC  test.c:
"test.c", line 16: error: ambiguous argument for overloaded func()
1 error
----------------------------------------

Doug