https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72775
Matteo Bertello <mbertello at feralinteractive dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mbertello@feralinteractive.
| |com
--- Comment #10 from Matteo Bertello <mbertello at feralinteractive dot com> ---
Just had the same internal compiler error on a different piece of code, using
GCC 6.1.1 on Fedora 24.
Might be useful to investigate the cause.
#include <thread>
void func(int i);
int main(int argc, char* argv[])
{
int val = 0;
auto thread = std::thread([&, =val]() { func(val); });
}
$ gcc main.cpp
main.cpp: In lambda function:
main.cpp:8:51: internal compiler error: in finish_expr_stmt, at
cp/semantics.c:677
auto thread = std::thread([&, =val]() { func(val); });
^