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: Sun, 06 Apr 2014 09:00:23 +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 #12 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #11)
> Created attachment 32551 [details]
> first try
>
> With clobber removal now.
Why do you want to remove the clobber?
I understood your idea to avoid duplicated warnings was to add
__builtin_unreachable and replace the value.
Could be possible to have a special var/value that is marked as artificial such
that the warning code never warns for statements containing this variable? We
already have DECL_ARTIFICIAL in the FE but I am not sure whether that survives
to the middle-end.