Bug 86068 - __cpp_transactional_memory is 210500
Summary: __cpp_transactional_memory is 210500
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: trans-mem
: P3 normal
Target Milestone: ---
Assignee: Jakub Jelinek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 09:05 UTC by Rasmus Villemoes
Modified: 2018-11-20 08:38 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-06-06 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rasmus Villemoes 2018-06-06 09:05:28 UTC
The comment above the definition of __cpp_transactional_memory suggests that 201500 was meant to be used. Currently, gcc advertises support for whatever transactional_memory features get standardized the next 86 years...

It probably can't be corrected to 201500 if there's existing code that does the __cpp_transactional_memory >= 201505 check, but OTOH setting it to 201505 isn't ideal either.
Comment 1 Jakub Jelinek 2018-06-06 17:56:11 UTC
Author: jakub
Date: Wed Jun  6 17:55:39 2018
New Revision: 261242

URL: https://gcc.gnu.org/viewcvs?rev=261242&root=gcc&view=rev
Log:
	PR c++/86068
	* c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
	__cpp_transactional_memory to 201500 instead of 210500.

	* include/bits/c++config: Check __cpp_transactional_memory >= 201500L
	rather than __cpp_transactional_memory >= 201505L.

Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-cppbuiltin.c
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/c++config
Comment 2 Rasmus Villemoes 2018-06-07 13:04:42 UTC
The page https://gcc.gnu.org/projects/cxx-status.html probably needs to be updated to say __cpp_transactional_memory >= 201500.
Comment 3 Martin Liška 2018-11-20 08:30:35 UTC
Jakub: Can the bug be marked as resolved? Or please update Known to work.
Comment 4 Jakub Jelinek 2018-11-20 08:38:11 UTC
Fixed.