================ @@ -406,7 +406,7 @@ void use() { strings.insert(strings.begin(), std::string()); std::vector<const std::string*> pointers; - pointers.push_back(getLifetimeBoundPointer(std::string())); // expected-warning {{object whose reference is captured by 'pointers' will be destroyed at the end of the full-expression}} + pointers.push_back(getLifetimeBoundPointer(std::string())); ---------------- hokein wrote:
I completely agree that it would be ideal to restore the diagnostic without introducing false positives. However, I currently don’t have a simple solution for how to achieve this. https://github.com/llvm/llvm-project/pull/122240 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits