This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- From: "mbertello at feralinteractive dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2016 16:08:25 +0000
- Subject: [Bug c++/72775] [6/7 Regression] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- Auto-submitted: auto-generated
- References: <bug-72775-4@http.gcc.gnu.org/bugzilla/>
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); });
^