Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Michael Tiemann
Tue, 12 Sep 1989 12:42
type conversion operators
Author: Michael Tiemann
Date: Tue, 12 Sep 1989 12:42
Date: Tue, 12 Sep 1989 12:42
28 lines
1210 bytes
1210 bytes
I found out that AT&T cfront 2.0 now complains if the return type is
specified for a type conversion operator:
struct A
{
void * operator void * (); // gives error message
};
I am therefore making GNU C++ give a warning message about this, with
the intention of turning it into an error message later. Such
redundancy should be avoided.
On the other hand, cfront also complains about multiple
initiaizations:
int f (int = 0);
int f (int a = 0) // multiple initializations
{
...
}
I don't think this is such a hot idea, since the declaration of f and
its definition could be in different files, and it is nice to see
consistent facts at both sites. I consider this form of redundancy
useful until all editors (including vi) implement hypertext.
Michael
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