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 3005da1 commit ba67f3bCopy full SHA for ba67f3b
clang/docs/ReleaseNotes.rst
@@ -148,6 +148,17 @@ C++ Specific Potentially Breaking Changes
148
// Now diagnoses with an error.
149
void f(int& i [[clang::lifetimebound]]);
150
151
+- Clang now rejects all field accesses on null pointers in constant expressions. The following code
152
+ used to work but will now be rejected:
153
+
154
+ .. code-block:: c++
155
156
+ struct S { int a; int b; };
157
+ constexpr const int *p = &((S*)nullptr)->b;
158
159
+ Previously, this code was erroneously accepted.
160
161
162
ABI Changes in This Version
163
---------------------------
164
0 commit comments