This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 26_numerics/c99_classification_macros_c.cc
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: rth at redhat dot com
- Date: Tue, 22 Jan 2002 09:36:10 -0600 (CST)
- Subject: Re: 26_numerics/c99_classification_macros_c.cc
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
> Fails on alpha-linux:
> c99_classification_macros_c.cc:46:16: macro "isgreater" requires 2
> arguments, but only 1 given
> c99_classification_macros_c.cc:46: syntax error before `{' token
> The functions you define here may be macros in C99.
I'll bet that c99_classification_macros_c++.cc PASSes fine. Notice
the subtle difference between the tests.
c99_classification_macros_c.cc will fail on any machine that has a C99
math library implementation until the "shadow system headers" are
created by our implementation.
> I have no idea what you are trying to test exactly.
Namespace pollution. A conforming C++-98 library implementation may
not define extra macros which are in the user's name space in the
standard headers. The fact that we reuse the <math.h> system header
does not allow us to violate the standard (granted that this is a
somewhat pedantic issue)...
Regards,
Loren