================
@@ -2299,8 +2299,8 @@ void test_optional_arrow_lifetimebound() {
{
std::optional<MyObj> opt;
v = opt->getView(); // expected-warning {{local variable 'opt' does not
live long enough}} \
- // expected-note {{expression aliases the storage of
local variable 'opt' because the implicit object parameter is lifetimebound}} \
- // expected-note {{result of call to 'getView'
aliases the storage of local variable 'opt' because the implicit object
parameter is lifetimebound}}
+ // expected-note {{expression aliases the storage of
local variable 'opt' because the implicit object parameter is inferred as
lifetimebound}} \
----------------
usx95 wrote:
I think this could be quite confusing and it would be great we can clarify that
this is talking about `operator->` instead of `expression aliases`.
Definitely belongs to different PR.
https://github.com/llvm/llvm-project/pull/220248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits