Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Grammer discrepancies for external data definitions.
Message-ID: <1988Aug13.204908.24107@utzoo.uucp>
Organization: U of Toronto Zoology
References: <8014@cup.portal.com>
Date: Sat, 13 Aug 88 20:49:08 GMT

In article <8014@cup.portal.com> bcase@cup.portal.com writes:
>"External declarations without any specifiers or qualifiers (just a naked
>declarator) are fobidden."  Yet it seems that at least some claimed-ANSI C
>compilers accept this and do what you might expect (allocate room for an int).
>At least one C++ implementation disallows it.  To those of you with the ANSI
>spec sitting in front of you, I ask "what is the correct behavior?"

The May draft (no, my copy *still* hasn't come, dammit, but I've borrowed
a friend's because time is running out) has the grammar set up in such a
way that at least one storage class specifier ("extern" etc.), type
specifier ("int" etc.), or type qualifier ("const" etc.) must appear.
Some compilers may well accept a more general syntax for the sake of
backwards compatibility.

				Henry Spencer @ U of Toronto Zoology
				uunet!attcan!utzoo!henry henry@zoo.toronto.edu
-- 
Intel CPUs are not defective,  |     Henry Spencer at U of Toronto Zoology
they just act that way.        | uunet!attcan!utzoo!henry henry@zoo.toronto.edu