================
@@ -2836,11 +2834,8 @@ S getS2(const std::string &a [[clang::lifetimebound]], 
const std::string &b [[cl
 S multiple_lifetimebound_params() {
   std::string str{"abc"};
   S s = getS2(str, std::string("temp")); // expected-warning {{stack memory 
associated with local variable 'str' is returned}} \
----------------
usx95 wrote:

Is deleting the alias information
`// expected-note {{result of call to 'getS2' aliases the storage of temporary 
object because parameter 'b' is marked as lifetimebound}} \`
intentional ?

https://github.com/llvm/llvm-project/pull/225799
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to