[Bug libstdc++/67256] [C++11] Global scope contaminated with symbols from mathcalls.h

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 18 12:43:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67256

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. the functions happen to be declared in <bits/mathcalls.h> but they are
standard functions declared in <math.h> and so your code would already have
failed to compile in C++03 if anyone included <math.h> (and the same applies
for <cmath> when that is implemented in terms of <math.h>, which is permitted
by the text I quoted from the standard).



More information about the Gcc-bugs mailing list