I
Ian Collins
I encountered this example in a C header, is the following legal?
typedef long ios;
struct X
{
ios ios;
};
It complies with comeau online and Sun CC, but g++ reports
/tmp/c.cc:6: error: declaration of 'ios X::ios'
/tmp/c.cc:2: error: changes meaning of 'ios' from 'typedef long int ios'
typedef long ios;
struct X
{
ios ios;
};
It complies with comeau online and Sun CC, but g++ reports
/tmp/c.cc:6: error: declaration of 'ios X::ios'
/tmp/c.cc:2: error: changes meaning of 'ios' from 'typedef long int ios'