This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12153] use of keywords in macro definitions can make compilation fail
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 22 Oct 2010 15:22:57 +0000
- Subject: [Bug libc/12153] use of keywords in macro definitions can make compilation fail
- Auto-submitted: auto-generated
- References: <bug-12153-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12153
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-10-22 15:22:51 UTC ---
On Fri, 22 Oct 2010, vincent+libc at vinc17 dot org wrote:
> I agree for assert(), though the explicit definition may be seen itself as a
> bug in the standard (in the sense: why should void be an exception to the
> rule?). But it seems that <math.h> has similar problems, where the standard
> doesn't give an explicit definition.
There's an example of a possible definition for fpclassify in 7.12.3.1#4
that uses the keywords sizeof, float and double. Clearly if the committee
actually intended macro definitions of keywords to be valid when macros
from standard headers are used they'd have allowed for it in such examples
in the standard and the Rationale.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.