RE: Compiler question....

Ed Vance (EdV@macrolink.com)
Tue, 21 May 2002 08:49:21 -0700


On Tue, May 21, 2002, Anton Altaparmakov wrote:
>
> The error messages the compiler is generating are completely
> bogus because the unnamed fields ARE of type struct or union.
> It's just that they are typedeffed so that the words "struct"
> and "union" do not appear. IMO that is a screwup by gcc...

Agreed, IIRC, didn't ANSI C spec address this specific point? That any two
types which contain matching simple types must be considered to match,
regardless of how they were declared, typedef or explicitly. e.g. Unlike
Pascal, typedef does not create "new" types. It creates aggregates of simple
types.

Ed

----------------------------------------------------------------
Ed Vance edv@macrolink.com
Macrolink, Inc. 1500 N. Kellogg Dr Anaheim, CA 92807
----------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/