[C++11, C++14 PATCH 4/4] Support for SD-6: SG10 Feature Test Recommendations: gcc/testsuite

Jason Merrill jason@redhat.com
Mon Jun 9 14:40:00 GMT 2014


On 06/09/2014 10:21 AM, Ed Smith-Rowland wrote:
> +//  TODO: Change <= to < when C++14 constexpr goes in.
> +#ifdef __cpp_constexpr
> +#  if __cpp_constexpr <= 201304
> +#    error "__cpp_constexpr"
> +#  endif
> +#endif

How is this passing currently?  200704 <= 201304, so I would expect this 
to error.

> +#ifndef __cpp_unicode_characters
> +#  error "__cpp_unicode_characters"
> +#endif

Don't we want to test for the correct value of all these macros?

Jason



More information about the Gcc-patches mailing list