[Bug c/13172] Error generated in case of local variable declaration with missing type specifier
jsm at polyomino dot org dot uk
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 12:23:00 GMT 2003
------- Additional Comments From jsm at polyomino dot org dot uk 2003-11-24 12:23 -------
Subject: Re: New: Error generated in case of local variable
declaration with missing type specifier
On Mon, 24 Nov 2003, eckart at icd dot de wrote:
> According to ANSI C, the variable should be treated as 'int' implicitly. This
> works correctly for global variables and functions.
ISO C90 subclause 6.5, first syntax production (I don't have ANSI C89 to
hand to find the subsection number there) is quite clear. The declaration
specifiers can't be empty (although they might have just a type qualifier
or a storage class specifier). Function definitions have their own syntax
(6.7.1) in which the declaration specifiers are optional.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13172
More information about the Gcc-bugs
mailing list