aboutsummaryrefslogtreecommitdiff
path: root/clang/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs/ReleaseNotes.rst')
-rw-r--r--clang/docs/ReleaseNotes.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index b912f77..288904b 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -504,7 +504,8 @@ Non-comprehensive list of changes in this release
- Clang can now generate a PCH when using ``-fdelayed-template-parsing`` for
code with templates containing loop hint pragmas, OpenMP pragmas, and
``#pragma unused``.
-
+- Now diagnoses use of a member access expression or array subscript expression
+ within ``__builtin_offsetof`` and ``offsetof`` as being a Clang extension.
New Compiler Flags
------------------
@@ -684,6 +685,12 @@ C2x Feature Support
va_end(list);
}
+- Diagnose type definitions in the ``type`` argument of ``__builtin_offsetof``
+ as a conforming C extension according to
+ `WG14 N2350 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm>`_.
+ Also documents the builtin appropriately. Note, a type definition in C++
+ continues to be rejected.
+
C++ Language Changes in Clang
-----------------------------
- Implemented `DR692 <https://wg21.link/cwg692>`_, `DR1395 <https://wg21.link/cwg1395>`_,