[Bug c++/114909] False positive diagnostic from -Wdangling-reference

2024-05-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114909 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/114909] False positive diagnostic from -Wdangling-reference

2024-05-01 Thread oleg at smolsky dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114909 --- Comment #2 from Oleg Smolsky --- It seems like an unreasonable stretch to connect a `string` temporary to the returned `Json` reference. The types are not related and so that guess looks overly aggressive... The surgical workaround should w

[Bug c++/114909] False positive diagnostic from -Wdangling-reference

2024-05-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114909 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment