https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66769
Markus Trippelsdorf changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66769
--- Comment #3 from fiesh at zefix dot tv ---
Better, self contained problem case:
class A
{
void f(int a);
int g();
};
void A::f(int a) {}
int A::g()
{
auto r = [&] (auto x) { f(*x); };
int * p;
r(p);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66769
--- Comment #2 from fiesh at zefix dot tv ---
A friend checked for me, 5.1.0 also appears affected.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66769
--- Comment #1 from fiesh at zefix dot tv ---
Sorry, the above output was for 4.9.2 on a different host, mixed up when I ran
several tests. For 4.9.3:
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3/g++
Target: x86_64-pc