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

--- Comment #6 from Thibaut LUTZ <thibaut.lutz at googlemail dot com> ---
My previous test cases still fails with 6.0.0 20151012 on linux64.
It passes with "-std=c++11".
Fails with "-std=c++14", "-std=c++17", "-std=c++1y".

Same error:
prog.cc: In instantiation of ‘struct S<int>::<lambda()>’:
prog.cc:3:29:   required from here
prog.cc:3:10: internal compiler error: in tsubst_copy, at cp/pt.c:13708
   int f{[this](){return 42;}()};

Reply via email to