This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: 26_numerics/c99_classification_macros_c.cc


> 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


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