https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61870
Bug ID: 61870
Summary: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:1035
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dzidzitop at vfemail dot net
When I compile source code I see the following error.
src/lastfm_scrobbler.cpp: In lambda function:
src/lastfm_scrobbler.cpp:193:1: internal compiler error: in get_expr_operands,
at tree-ssa-operands.c:1035
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc6F4c5e.out file, please attach this to
your bugreport.
The line that does not compile is:
m_scrobblingThread = std::thread([this]() { backgroundScrobbling(); });
The following change fixes this:
m_scrobblingThread = std::thread([this]() { this->backgroundScrobbling(); });