-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-91731: Don't define 'static_assert' in C++11 where is a keyword to…
… avoid UB (GH-93700) (cherry picked from commit 65ff27c) Co-authored-by: Pablo Galindo Salgado <[email protected]>
- Loading branch information
1 parent
0c49a09
commit 7456109
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/C API/2022-06-10-23-41-48.gh-issue-91731.fhYUQG.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Avoid defining the ``static_assert`` when compiling with C++ 11, where this | ||
is a keyword and redefining it can lead to undefined behavior. Patch by | ||
Pablo Galindo |