https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
--- Comment #4 from Fedor Chelnokov ---
Ok.
At the same time we see that some false positives of this warning are fixed in
Trunk, e.g.
struct A {
int i;
};
struct Getter {
const A * a;
const int & value() const { return a->i; }
};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
--- Comment #3 from Xi Ruoyao ---
(In reply to Fedor Chelnokov from comment #2)
> Please note that this is a regression in GCC 13. GCC 12 (or other compilers)
> do not show a warning here: https://godbolt.org/z/Yhfad47xs
No, GCC 12 does not hav
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
--- Comment #2 from Fedor Chelnokov ---
Please note that this is a regression in GCC 13. GCC 12 (or other compilers) do
not show a warning here: https://godbolt.org/z/Yhfad47xs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
Xi Ruoyao changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---