This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/64085] ICE on C++14 lambda by-reference capture with an initializer
- From: "maxim.yegorushkin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Nov 2014 16:27:25 +0000
- Subject: [Bug c++/64085] ICE on C++14 lambda by-reference capture with an initializer
- Auto-submitted: auto-generated
- References: <bug-64085-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64085
--- Comment #1 from Maxim Yegorushkin <maxim.yegorushkin at gmail dot com> ---
It compiles fine if I replace the line in question with:
return [&captive = static_cast<T&>(arg)](auto&& a) {