int main ( )
{
int a = 1 ;
static int b = a ;
}
This piece of code gives error in gcc 4.3.2 as
error : initializer element is not constant.
But it runs fine on g++ 4.3.2.
Someone Please Explain why this is not giving error in g++ 4.3.2.
Because it is valid in C++ (and not valid in C).