From: Marek Polacek Date: Mon, 4 Mar 2024 16:25:28 +0000 (-0500) Subject: doc: update [[gnu::no_dangling]] X-Git-Tag: basepoints/gcc-15~839 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a89c5df317d1de74871e2a05c36aed9cbbb21f42;p=thirdparty%2Fgcc.git doc: update [[gnu::no_dangling]] ...to offer a more realistic example. gcc/ChangeLog: * doc/extend.texi: Update [[gnu::no_dangling]]. --- diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index f679c81acf2e..df0982fdfda5 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -29370,7 +29370,8 @@ Or: @smallexample template -[[gnu::no_dangling(std::is_reference_v)]] int& foo (T& t) @{ +[[gnu::no_dangling(std::is_lvalue_reference_v)]] +decltype(auto) foo(T&& t) @{ @dots{} @}; @end smallexample