c/9482: math builtins are always visible
Christian Ehrhardt
ehrhardt@mathematik.uni-ulm.de
Tue Jan 28 16:36:00 GMT 2003
The following reply was made to PR c/9482; it has been noted by GNATS.
From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: aj@suse.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/9482: math builtins are always visible
Date: Tue, 28 Jan 2003 17:34:58 +0100
On Tue, Jan 28, 2003 at 05:03:15PM +0100, aj@suse.de wrote:
> According to ISO C99, log is only a reserved identifier if <math.h> is
> included. But <math.h> is not included in the example above and
> therefore compilation should succeed. But it fails as follows:
My version of the standard says in 7.1.3:
All identifiers with external linkage in any of the following subclauses
(including the future library directions) are always reserved for use as
identifiers with external linkage.
This doesn't mention the header file. Note that macros are a different
story. These are indeed only reserved if the appropriate header in included.
If you agree on this I'll close the report.
regards Christian
--
THAT'S ALL FOLKS!
More information about the Gcc-prs
mailing list