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 libstdc++/70692] No warning when std::function<const int&(...)> binds a reference to a temporary


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2016-04-16
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 38288
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38288&action=edit
Untested patch.

We can enable -Wsystem-headers around the relevant function, but we also need a
change to <ext/string_conversions.h> to suppress the false positive
-Wsign-compare warnings in there.

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