[gnu.g++.bug] g++ 1.32 allows references to private static variables

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

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