We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06cd8a7 commit 670ab42Copy full SHA for 670ab42
clang/docs/ReleaseNotes.rst
@@ -42,6 +42,11 @@ Potentially Breaking Changes
42
C/C++ Language Potentially Breaking Changes
43
-------------------------------------------
44
45
+- Some old-style offsetof idioms like ``((int)(&(((struct S *)0)->field)))`` are treated
46
+ as UB. To avoid breaking existing code, ``inbounds`` flags will not be set for such patterns.
47
+ However, it is still highly recommended to use the UB-free builtin ``__builtin_offsetof``.
48
+ (#GH130734)
49
+
50
C++ Specific Potentially Breaking Changes
51
-----------------------------------------
52
0 commit comments