This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12153] use of keywords in macro definitions can make compilation fail


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]