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 3b01f31 commit 0e185edCopy full SHA for 0e185ed
clang/docs/ReleaseNotes.rst
@@ -69,6 +69,16 @@ Potentially Breaking Changes
69
call the member ``operator delete`` instead of the expected global
70
delete operator. The old behavior is retained under ``-fclang-abi-compat=21``
71
flag.
72
+- Trailing null statements in GNU statement expressions are no longer
73
+ ignored by Clang; they now result in a void type. Clang previously
74
+ matched GCC's behavior, which was recently clarified to be incorrect.
75
+
76
+ .. code-block:: c++
77
78
+ // The resulting type is 'void', not 'int'
79
+ void foo(void) {
80
+ return ({ 1;; });
81
+ }
82
83
C/C++ Language Potentially Breaking Changes
84
-------------------------------------------
0 commit comments