Skip to content

Commit ad96aa2

Browse files
usx95pradt2
authored andcommitted
Fix lifetimebound for field access (llvm#100197)
Fixes: llvm#81589 There is no way to switch this off without `-Wno-dangling`.
1 parent c51bab9 commit ad96aa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ Improvements to Clang's diagnostics
132132

133133
- Clang now diagnoses undefined behavior in constant expressions more consistently. This includes invalid shifts, and signed overflow in arithmetic.
134134

135+
- Clang now diagnoses dangling references to fields of temporary objects. Fixes #GH81589.
136+
137+
135138
Improvements to Clang's time-trace
136139
----------------------------------
137140

0 commit comments

Comments
 (0)