Gentoo Archives: gentoo-dev

From: "Paweł Hajdan
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: News item regarding c++98 vs c++11
Date: Mon, 20 Oct 2014 16:23:17
Message-Id: 54453680.8020004@gentoo.org
In Reply to: [gentoo-dev] RFC: News item regarding c++98 vs c++11 by "Anthony G. Basile"
1 On 10/20/14 12:53 AM, Anthony G. Basile wrote:
2 > GCC 4.7 introduced the new experimental 2011 ISO C++ standard [1], along
3 > with
4 > its GNU variant. This new standard is not the default in GCC 4.7, 4.8
5 > or 4.9,
6 > the default is still gnu++98, but it can be enabled by passing
7 > -std=c++11 or
8 > -std=gnu++11 to CXXFLAGS.
9 >
10 > Users that wish to try c++11 should exercise caution because it is not
11 > ABI-compatible with c++98.
12
13 This seems to focus on the Gentoo user adding -std=c++11 to CXXFLAGS.
14
15 Do we consider this #1 problem with gcc-4.8 or 4.7+?
16
17 As far as I'm concerned, the big issue is e.g.
18 <https://bugs.gentoo.org/show_bug.cgi?id=513386>, where having gcc-4.7
19 and gcc-4.8 installed on the same system (and using gcc-4.7 as the
20 active gcc version) is known to be broken.
21
22 Another concern I have with the above news item is it might actually
23 encourage "crazy" users to add -std=c++11 to CXXFLAGS, even though
24 otherwise they wouldn't even know about the flag.
25
26 To summarize, my suggestion is to make sure we clearly communicate known
27 bugs reported to Gentoo, like example above one.
28
29 Paweł

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] RFC: News item regarding c++98 vs c++11 "Anthony G. Basile" <basile@××××××××××××××.edu>