Thread View: gnu.g++.bug
1 messages
1 total messages
Started by "Douglas C. Schmidt"
Tue, 03 Jan 1989 03:46
g++ 1.32 allows references to private static variables
Author: "Douglas C. Schmidt"
Date: Tue, 03 Jan 1989 03:46
Date: Tue, 03 Jan 1989 03:46
19 lines
792 bytes
792 bytes
Hi,
G++ 1.32 does not complain about the following:
----------------------------------------
class Y {
private:
static int i;
};
main ( ) {
int i = Y::i; // this is illegal, since Y::i is a *private* static
}
----------------------------------------
cfront 1.2.1 properly flags this as an 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