Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T> class x {};
- //typedef x xx;
- class y {
- void x() {}
- x<int> z;
- };
- /*
- $ g++ names2.cc
- names2.cc:7: error: ISO C++ forbids declaration of ‘x’ with no type
- names2.cc:7: error: expected ‘;’ before ‘<’ token
- */
Add Comment
Please, Sign In to add comment