This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61362] g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2 does not compile lambda with template
- From: "thibaut.lutz at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Oct 2015 10:53:28 +0000
- Subject: [Bug c++/61362] g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2 does not compile lambda with template
- Auto-submitted: auto-generated
- References: <bug-61362-4 at http dot gcc dot gnu dot org/bugzilla/>
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;}()};