label_statement ambiguity in parse.h

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

 




In parse.h 'struct statement' the same fieldname
"label_statement" is used multiple times. Is it intended ? 


struct statement {
	enum statement_type type;
	struct position pos;
	union {
		struct /* declaration */ {
			struct symbol_list *declaration;
		};
		struct /* label_arg */ {
			struct symbol *label;
==> HERE		struct statement *label_statement;
		};
                ...
		struct /* labeled_struct */ {
			struct symbol *label_identifier;
==> HERE		struct statement *label_statement;
		};




I guess from the gcc point of view it does not make a difference
as it will point to the same address because in both 
cases the items before have the same type and so size, but
if one day someone change one type, the user may have
some surprise ?

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux