c/9482: math builtins are always visible
Joseph S. Myers
jsm28@cam.ac.uk
Tue Jan 28 17:56:00 GMT 2003
The following reply was made to PR c/9482; it has been noted by GNATS.
From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: <aj@suse.de>
Cc: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>
Subject: Re: c/9482: math builtins are always visible
Date: Tue, 28 Jan 2003 17:49:42 +0000 (GMT)
On Tue, 28 Jan 2003 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:
7.1.3p1 says library identifiers are always reserved for use as
identifiers with external linkage. Only C94 has different rules (for some
of the functions it added, and those special cases were removed in C99).
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc-prs
mailing list