This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/62052] function parameter has wrong address in lambda converted to pointer-to-function
- 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: Mon, 09 Mar 2015 10:15:06 +0000
- Subject: [Bug c++/62052] function parameter has wrong address in lambda converted to pointer-to-function
- Auto-submitted: auto-generated
- References: <bug-62052-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62052
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Segfaulting testcase from PR 65354:
#include <iostream>
int main ()
{
auto f = +[] (std::string s)
{
return std::string (std::move (s));
};
std::string s ("hello");
f (std::move (s));
}