Diagnose dangling assignments for std::initializer_list. #110103
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
clang:memory-safety
Issue/FR relating to the lifetime analysis in Clang (-Wdangling, -Wreturn-local-addr)
See the example below, it would be nice for clang to diagnose this case.
https://godbolt.org/z/W3dhEzY6M
The text was updated successfully, but these errors were encountered: