fork download
  1. class Mesh
  2. {
  3. };
  4.  
  5. class MeshProvider
  6. {
  7. public:
  8. Mesh Mesh; /* Это должно компиляться? */
  9. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8: error: declaration of ‘Mesh MeshProvider::Mesh’
prog.cpp:2: error: changes meaning of ‘Mesh’ from ‘class Mesh’
stdout
Standard output is empty