Skip to content

Commit 0e185ed

Browse files
committed
Add a note to release note
1 parent 3b01f31 commit 0e185ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ Potentially Breaking Changes
6969
call the member ``operator delete`` instead of the expected global
7070
delete operator. The old behavior is retained under ``-fclang-abi-compat=21``
7171
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+
}
7282

7383
C/C++ Language Potentially Breaking Changes
7484
-------------------------------------------

0 commit comments

Comments
 (0)