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
--
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?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476
Manuel López-Ibáñez changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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()
>
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
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.