------- Comment #68 from redi at gcc dot gnu dot org 2010-04-29 09:49 ------- (In reply to comment #63) > > Based on Solaris 11 x86, I don't see a way for say cstdlib to have only the > namespace std versions of functions, and not also the global scoped ones. This > is a problem. The way I read ISO C++, cstdlib should only have std:: scoped > bits. The C++ compatibility include stdlib.h should then re-scope to :: > (global). Solaris tries to smash these two concepts together. Boo.
This is no longer a problem: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456 Can we consider defining __cplusplus to the correct value in C++0x mode, even if we leave it at 1 for 98/03 mode? Let me know if I can help test on Solaris (if that's still necessary) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773