[llvm-bugs] [Bug 37922] ISO C++ forbids declaration of '_Atomic' with no type

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 25 08:38:32 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37922

Eli Friedman <efriedma at codeaurora.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |efriedma at codeaurora.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Eli Friedman <efriedma at codeaurora.org> ---
_Atomic is a reserved identifier (per [lex.name]), with no defined meaning in
C++, so we can define it to mean whatever we want.

Support for C _Atomic types in C++ seems like a useful extension with no
downside.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180625/9d0c171d/attachment.html>


More information about the llvm-bugs mailing list