https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114220
Xi Ruoyao changed:
What|Removed |Added
CC||asharafutdinov at adalisk dot
com
--- Comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114220
--- Comment #4 from Andrew Pinski ---
(In reply to Дилян Палаузов from comment #3)
> > The warning is designed this way explictly because you are returning a
> > reference and taking a reference as an argument and in the case of b2, the
> > te
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114220
--- Comment #3 from Дилян Палаузов ---
> The warning is designed this way explictly because you are returning a
> reference and taking a reference as an argument and in the case of b2, the
> tempory is `std::string("u")` .
> In GCC 14+ (since
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114220
--- Comment #2 from Дилян Палаузов ---
Is my reading correct, that the warning is triggered, when a function receives
as parameter a reference to a temporary and returns a reference? If this is
the only criterion, then it is a wrong assumption,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114220
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---