Skip to content

Commit 3f33c84

Browse files
[clang] Add release note for int->enum conversion change. (#144407)
This seems to be having some practical impact, so we should let people know.
1 parent 362b9d7 commit 3f33c84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ C++ Specific Potentially Breaking Changes
6565
standard library already have their own bespoke builtins.
6666
- A workaround for libstdc++4.7 has been removed. Note that 4.8.3 remains the oldest
6767
supported libstdc++ version.
68-
6968
- Added ``!nonnull/!align`` metadata to load of references for better codegen.
69+
- Checking for int->enum conversions in constant expressions is more strict;
70+
in particular, ``const E x = (E)-1;`` is not treated as a constant if it's
71+
out of range. This impacts old versions of Boost. (#GH143034)
7072

7173
ABI Changes in This Version
7274
---------------------------

0 commit comments

Comments
 (0)