[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2019-08-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 Bug 50476 depends on bug 60517, which changed state. Bug 60517 Summary: warning/error for taking address of member of a temporary object https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 What|Removed |Added --

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2019-08-04 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 --- Comment #5 from Eric Gallager --- would this proposed warning go under an existing flag, or a new one?

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2015-09-17 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2012-05-09 Thread rui.maciel at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 --- Comment #3 from Rui Maciel 2012-05-09 11:47:49 UTC --- (In reply to comment #2) > I think it is only undefined behaviour to access the pointer after the > life-time of y has finished, however, the following probably isn't, no? > > void g() >

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2012-05-09 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment

[Bug c/50476] Warn of pointer set to object whose lifetime is limited

2012-05-08 Thread rui.maciel at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 --- Comment #1 from Rui Maciel 2012-05-08 13:35:33 UTC --- This issue is still present in gcc 4.6.3.