Re: Errors using the same identifier as type and function name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 02 September 2008, Rodolfo Lima wrote:
> 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.

I think that's because the clauses about illegally changing the meaning of a 
names come from the shady mists of the standard's 3.3.6(2,3), which does not 
require the compiler to issue any diagnostics.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux