This is the mail archive of the
mailing list for the GCC project.
Re: [C++11, C++14 PATCH 2/3] Support for SD-6: SG10 Feature Test Recommendations - c-family and testsuite
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 02 Jun 2014 11:05:34 -0400
- Subject: Re: [C++11, C++14 PATCH 2/3] Support for SD-6: SG10 Feature Test Recommendations - c-family and testsuite
- Authentication-results: sourceware.org; auth=none
- References: <53894FCF dot 1000802 at verizon dot net> <alpine dot DEB dot 2 dot 10 dot 1405310826140 dot 2106 at laptop-mg dot saclay dot inria dot fr> <538C8AC2 dot 2000300 at redhat dot com>
On 06/02/2014 10:31 AM, Jason Merrill wrote:
Right... That was a testing thing I left in by accident to make sure
supercedance would work. Commented out. ;-)
On 05/31/2014 02:30 AM, Marc Glisse wrote:
Also, I am pretty sure that gcc doesn't support the latest constexpr, we
shouldn't define those macros lightly.
That's correct. We should leave __cpp_constexpr at 200704 for now.
I now have these for all C/C++ versions. When I implemented these I
thought "Why the heck hasn't the preprocessor had these for 20 years..."
I think having __has_include for all languages is fine since it is
already in the implementation defined namespace.
Agreed. These macros should be defined if the feature is supported.
Similarly, features of later standards that we implement in earlier
conformance modes as extensions (specifically, init-captures and
binary literals) should have the appropriate macros defined.
Very good idea...
I'll research these. unless someone has a little list somewhere...?