Multiple typedefs

Bob Corbett corbett at beatnix.UUCP
Sat May 6 06:55:18 AEST 1989


In article <12955 at haddock.ima.isc.com> karl at haddock.ima.isc.com (Karl Heuer) writes:
!It seems to me that the compiler is going to have to be able to handle such a
!case anyway.  Note that
!	typedef int foo;
!	void f(void) {
!	    typedef int foo;
!	}
!*is* legal (and would be even if the two types didn't match; the second simply
!hides the first until end-of-scope).

The latest draft of the standard I have (December 7, 1988) does not allow a
storage-class-specifier (in this case typedef) in a struct-declaration-list.
If X3J11 added this feature since that draft, we need another round of public
review.

!Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint

					    Faithfully yours,
					    Bob Corbett



More information about the Comp.std.c mailing list