This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: Jason Merrill <jason at redhat dot com>, libstdc++ at gcc dot gnu dot org, Marc Glisse <marc dot glisse at inria dot fr>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, gcc-patches at gcc dot gnu dot org, Tom Tromey <tromey at redhat dot com>
- Date: Fri, 21 Oct 2011 19:16:44 -0500
- Subject: Re: [libcpp] Correctly define __cplusplus (PR libstdc++-v3/1773)
- References: <yddy5z2q3xt.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <alpine.DEB.2.02.1108091504230.5409@laptop-mg.saclay.inria.fr> <4E419465.6080307@redhat.com> <alpine.DEB.2.02.1110212104280.6478@laptop-mg.saclay.inria.fr> <4EA1CD6C.2090308@redhat.com> <88EB11FA-4760-4935-A06D-6A90A7E5D28C@comcast.net>
On Fri, Oct 21, 2011 at 5:22 PM, Mike Stump <mikestump@comcast.net> wrote:
> On Oct 21, 2011, at 12:52 PM, Jason Merrill wrote:
>> On 10/21/2011 03:11 PM, Marc Glisse wrote:
>>> Note that at least clang now defines __cplusplus to its new C++11 value
>>> (in experimental C++0X mode only). Apparently they switched around last
>>> June and say they are not the only ones. So if you want to follow their
>>> lead...
>>
>> Hmm, between that and the fact that 4.7 will in fact have almost all of the C++11 features, I think changing the value makes sense.
>
> Is there a plan on what the default language will be? ?C is stuck in 1980, and will be forever. ?Personally, I'd rather have g++ move up language standards by default, I'd rather make the move before 2023.
I would like to see the default change too. But for GCC-4.8 -- so that should
take care of Mike's worry :-)
Do we have a formal way to announce default change in upcoming release?
I think that would give enough "heads up", especially since C++11 with break ABI
compatibilty.