You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: The foo{"a"} gets a bugprone-dangling-handle warning but the foo("a") line does not. I have other examples with class("str") not getting a warning, so it seems like the foo{"a"} is a special case in which it works, but usually it doesn't.
The text was updated successfully, but these errors were encountered:
Repro is using clang-tidy 17.0.1 on the code below with -std=c++17 and https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/bugprone/dangling-handle.html . See #54984 for an example command line (this issue seems different from that bug).
Bug: The
foo{"a"}
gets a bugprone-dangling-handle warning but thefoo("a")
line does not. I have other examples withclass("str")
not getting a warning, so it seems like thefoo{"a"}
is a special case in which it works, but usually it doesn't.The text was updated successfully, but these errors were encountered: