This is the mail archive of the gcc@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]

Re: Could somebody please explain these terms - needed for translation


Zack Weinberg <zack@rabi.columbia.edu> writes:

|> On Tue, 27 Apr 1999 18:49:55 GMT, Philipp Thomas wrote:
|> >#: c-parse.y:1398
|> >"ANSI C forbids member declarations with no members"
|> 
|> I am not certain what this means, either.  It triggers on code like
|> 
|> struct S { int; };
|> 
|> but that also gets some other warnings.

I think it is intented to cover this case because it calls shadow_tag:

struct x { struct x; int y; };

Outside of a struct/union "struct x;" is valid as a declaration.

Andreas.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


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