https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66735
aaron.mcdaid at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aaron.mcdaid at gmail dot com --- Comment #1 from aaron.mcdaid at gmail dot com --- I'm also seeing the same problem, and another very similar issue: int main() { const int x = 0; auto l = [&rx = x]() {}; } This is rejected by g++ (4.9.3 and 5.2.0) but accepted by clang. Also discussed on StackOverflow: http://stackoverflow.com/q/31919260/146041