#include <iostream>using namespace std; int main() { return 0;}class X;class Y; class X { }; class Y { X x;};X::Y y;
Standard input is empty
prog.cpp:17:4: error: 'Y' in 'class X' does not name a type X::Y y; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!