typedef int T;
main()
{
T T=5; //no error
}

but in the following case, I get an error
main()
{
typedef int T;
T T=5; /error
}