This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60517] warning/error for taking address of member of a temporary object


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]