[Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 9 19:01:49 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|error on a function |[8/9/10 Regression] error
|redeclaration with |on a function redeclaration
|attribute transaction_safe |with attribute
| |transaction_safe
Keywords| |rejects-valid
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection points to r228462 as the first revision to reject the code:
commit b8fd7909c04a29e82fb3ebace161801f949ad4f5
Author: Jason Merrill <jason@redhat.com>
Date: Sun Oct 4 15:17:19 2015 -0400
Implement N4514, C++ Extensions for Transactional Memory.
gcc/
* builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
gcc/c-family/
* c-common.c (c_common_reswords): Add C++ TM TS keywords.
(c_common_attribute_table): Add transaction_safe_dynamic.
transaction_safe now affects type identity.
(handle_tm_attribute): Handle transaction_safe_dynamic.
* c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
(OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
(D_TRANSMEM): New.
More information about the Gcc-bugs
mailing list