This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


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

Re: enum xyz;


> The standard explicitly states that incomplete enums types are not
> permitted.  If need be I can dig out the standard and find the
> specific section that states this.

6.5.2.3 and in particular footnote 62 on page 62:

	A similar construction with enum does not exist and is not
	necessary as there can be no mutual dependencies between
	the declaration of an enumerated type and any other type

> It's a GCC extension; [...] my reference is the 'Incomplete Enums'
> node of the gcc manual (file: gcc/extend.texi).

Amusingly enough, this node of the manual doesn't think it'll be very
useful either: you really want just a pointer to an enum?

    John   "ISO-C police wannabe :-)"

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