This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Support Plan 9 extensions in gcc


Ian Lance Taylor <iant@google.com> writes:

> I think that this case:
>   struct s1 { int i; };
>   struct s2 { struct s1; };
>   struct s3 { struct s2; struct s2; };
                       ^^
Did you mean s1 here?

> is intended to be accepted, but writing
>   int f (struct s1 *p) { return p.i; }
                  ^^
ITYM struct s3?

> is intended to be an error because there are two different fields named
> 'i' at the same depth.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]