http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316
--- Comment #45 from Marc Glisse <marc.glisse at normalesup dot org> 2012-01-04 13:06:10 UTC --- (In reply to comment #42) > Well, perhaps something like: > #ifdef __cplusplus > extern "C++" int __REDIRECT_NTH (pthread_create, (pthread_t *__restrict > __newthread, const pthread_attr_t *__restrict __attr, > void *(*__start_routine) (void *), > void *__restrict __arg) __nonnull ((1, 3)), pthread_create); > #endif > (for glibc) could do the trick (and similarly for qsort and other C functions > that take callbacks?) For bsearch and qsort, the standard actually requires those (and solaris has them, although we fixinclude them out currently). For posix functions, well, the posix-c++-wg mailing-list hasn't seen a single email since March 2010... > still I agree this would be terribly annoying for everybody. Yes. > At least this shouldn't be considered for GCC 4.7 at this point. Oh, of course. Maybe not even 4.8. In the patch, I (partially) enabled alias templates in system headers because there are some things in libstdc++ that may not be possible to do without those, so it may be better to wait until -std=c++11 becomes the default if we want to do that. Plus, that completely breaks the ABI, so it should be synchronized with other ABI-breaking changes. And we may even decide on an official WONTFIX.