[Bug c++/110075] Bogus -Wdangling-reference

2024-03-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-30 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-28 Thread ostash at ostash dot kiev.ua via Gcc-bugs
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

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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.

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-23 Thread ostash at ostash dot kiev.ua via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Viktor Ostashevskyi changed: What|Removed |Added CC||ostash at ostash dot kiev.ua ---

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/110075] Bogus -Wdangling-reference

2023-10-28 Thread roystgnr at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Roy Stogner changed: What|Removed |Added CC||roystgnr at gmail dot com --- Comment #2

[Bug c++/110075] Bogus -Wdangling-reference

2023-06-09 Thread pilarlatiesa at gmail dot com via Gcc-bugs
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