Errors using the same identifier as type and function name

Rodolfo Lima rodolfo@rodsoft.org
Tue Sep 2 01:12:00 GMT 2008


John Fine escreveu:
> Sequence doesn't work that way when declaring members.  Inside a struct 
> definition, you can use a member name before declaring it.

That's a valid point, but why it compiles when we inherit 'struct A' 
from 'struct type'? That's what bugged me in the first place.

Regards,
Rodolfo Lima



More information about the Gcc-help mailing list