Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Fri, 13 Jan 1989 03:46
g++ allows another ambigous type conversion.
Author: "Douglas C. Schmidt"
Date: Fri, 13 Jan 1989 03:46
Date: Fri, 13 Jan 1989 03:46
35 lines
1036 bytes
1036 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads