https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
Marek Polacek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
--- Comment #7 from Marek Polacek ---
It's hard to decide. It seems that once we've covered std::span-like classes,
in practice the warning points out real issues. I would hope that code like
you posted is actually fairly rare. But it's diffi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
--- Comment #6 from Viktor Ostashevskyi ---
(In reply to Marek Polacek from comment #5)
> Yes, because we'd have to analyze the body of the function to see that it
> does not return one of the parameters, which often we can't do.
>
> There will
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
--- Comment #5 from Marek Polacek ---
Yes, because we'd have to analyze the body of the function to see that it does
not return one of the parameters, which often we can't do.
There will be an attribute soon to suppress that warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
Viktor Ostashevskyi changed:
What|Removed |Added
CC||ostash at ostash dot kiev.ua
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
Roy Stogner changed:
What|Removed |Added
CC||roystgnr at gmail dot com
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
--- Comment #1 from Pilar Latiesa ---
I forgot to paste:
$ ./gcc-13/bin/g++ -v
Usando especificaciones internas.
COLLECT_GCC=./gcc-13/bin/g++
COLLECT_LTO_WRAPPER=/home/pililatiesa/gcc-13/libexec/gcc/x86_64-pc-linux-gnu/13.1.0/lto-wrapper
Objeti