This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++11, C++14 PATCH 2/3] Support for SD-6: SG10 Feature Test Recommendations - c-family and testsuite


On 06/02/2014 10:31 AM, Jason Merrill wrote:
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.
Right... That was a testing thing I left in by accident to make sure supercedance would work. Commented out. ;-)

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.

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..."
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...?

Jason




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]