home *** CD-ROM | disk | FTP | other *** search
- #if 0
- From:
- Subject:
- Status: Same as bug23.cpp, fixed in 2.2
- #endif
-
- class two;
-
- class one {
- friend int two::peeker(one &); //should give syntax error
- int pp;
- };
-
- class two {
- int hold;
- public:
- // shouldn't give error about pp being private
- int peeker(one& a) { return hold = a.pp; }
- };
-