Consider the following example:
void foo()
{
class A;
class A;
}
int main()
{
foo();
return 0;
}
And it is work fine. Why such redecration of class type is permitted? I'm confused...
UPD: Please give me a quote from c++ spec where such redeclaration is permitted... if it possible.