This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70692] No warning when std::function<const int&(...)> binds a reference to a temporary
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Apr 2016 13:55:28 +0000
- Subject: [Bug libstdc++/70692] No warning when std::function<const int&(...)> binds a reference to a temporary
- Auto-submitted: auto-generated
- References: <bug-70692-4 at http dot gcc dot gnu dot org/bugzilla/>
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.