[Bug libstdc++/70692] No warning when std::function<const int&(...)> binds a reference to a temporary
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 16 13:55:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list