Skip to content

Instantly share code, notes, and snippets.

@yang
Created November 26, 2008 18:17
Show Gist options
  • Save yang/29469 to your computer and use it in GitHub Desktop.
Save yang/29469 to your computer and use it in GitHub Desktop.
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
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment