This is the mail archive of the
mailing list for the GCC project.
Re: Strange C++ function pointer test
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Cc: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- Date: Thu, 31 Dec 2015 12:31:23 +0000
- Subject: Re: Strange C++ function pointer test
- Authentication-results: sourceware.org; auth=none
- References: <20151231094918 dot GA12885 at linux dot vnet dot ibm dot com> <alpine dot DEB dot 2 dot 20 dot 1512311055290 dot 17945 at laptop-mg dot saclay dot inria dot fr> <CAH6eHdTASETHDhGYdC60iOw1PgmtUOhwVT_iJ4Fi4ZCYCzomyg at mail dot gmail dot com> <alpine dot DEB dot 2 dot 20 dot 1512311226480 dot 23439 at laptop-mg dot saclay dot inria dot fr>
On 31 December 2015 at 11:37, Marc Glisse wrote:
> That's what I called "bug" in my message (there are a few bugzilla PRs for
> this). It would probably work on Solaris.
Yes, the <math.h> case is still a mess in the standard and in glibc.
The "only in namespace std in the second case" part is what I meant
was not accurate. C++11 changed to allow <cmath> to declare it in the
global namespace, but as you say didn't go far enough.