This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60517] warning/error for taking address of member of a temporary object
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Mar 2014 23:44:47 +0000
- Subject: [Bug c++/60517] warning/error for taking address of member of a temporary object
- Auto-submitted: auto-generated
- References: <bug-60517-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #1)
> I see in the dump:
>
> # .MEM_4 = VDEF <.MEM_8>
> D.2272 ={v} {CLOBBER};
> # VUSE <.MEM_4>
> _5 = MEM[(doubleD.39 *)&D.2272];
>
> which looks like something we could warn about in the middle-end.
Could you elaborate? My middle-end foo is not as good as it used to be.