26_numerics/c99_classification_macros_c.cc
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Tue Jan 22 07:39:00 GMT 2002
> 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
More information about the Libstdc++
mailing list