================
@@ -1250,6 +1250,16 @@ void conditional_operator_lifetimebound_nested_deep(bool
cond) {
(void)*p; // expected-note 4 {{later used here}}
}
+void simpleparen() {
+ MyObj* p;
+ {
+ MyObj a;
+ MyObj* b = &a; // expected-warning {{local variable 'a' does not live
long enough}}
+ p = (((b)));
----------------
suoyuan666 wrote:
I have an idea for this:
https://github.com/llvm/llvm-project/pull/199345#discussion_r3395690681. If the
analysis is correct, I can fix it in a separate PR by calling `ignoreParen()`.
Anyway, I will add a FIXME for now.
https://github.com/llvm/llvm-project/pull/204124
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits