This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: OpenMP vs. <math.h>


Yaakov (Cygwin/X) wrote:

> But thinking about this further, there's just no way that these macros
> would ever be safe with C++.  Take this for a simple example:
> 
> $ cat > log2.cxx <<_EOF_
> #include <cmath>
> #include <iostream>
> 
> int
> main(void)
> {
>     std::cout << ::log2(42) << std::endl;
>     return 0;
> }
> _EOF_
> 
> $ g++ -c log2.cxx
> log2.cxx: In function ‘int main()’:
> log2.cxx:8: error: expected id-expression before ‘(’ token

  This is PR35104.

    cheers,
      DaveK



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