Open Quuxplusone opened 6 years ago
Attached clang-tidy-bug.tar.gz
(441 bytes, application/gzip): Code as described in the bug
Correction: I'm using GCC 7.3.0 libstdc++
Hi Matt,
thank you for reporting the bug. Because this comes from the Static Analyzer and not clang-tidy (as it only calls the CSA) I moved this bug to the other component.
Best Jonas
Hmm, right, std::addressof() does take the object by a non-const reference, but it certainly doesn't invalidate the object's contents.
clang-tidy-bug.tar.gz
(441 bytes, application/gzip)