// Owner.hppnamespace Street { class Bulldog; class Owner { Bulldog* bulldog; };} // House/Bulldog.hnamespace Street { class Mutt {};} // Bulldog.hnamespace Street { typedef Mutt Bulldog;} int main(int, char**){ return 0;}
Standard input is empty
prog.cpp:17:18: error: conflicting declaration ‘typedef class Street::Mutt Street::Bulldog’ prog.cpp:3:11: error: ‘class Street::Bulldog’ has a previous declaration as ‘class Street::Bulldog’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!