fork download
  1. namespace {
  2. class Foo {};
  3. class Bar { Foo foo; /* OK */ };
  4. };
  5.  
  6. class Baz { Foo foo; /* not visible, error */ };
  7.  
  8. int main() {
  9. Bar b;
  10. Baz z;
  11. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout

Standard output is empty