https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61814

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Alexander Dubov from comment #1)
> But this basic modification fails to compile (g++-4.9.1 -std=gnu++14):
> 
> int main(int argc, char **argv)
> {
>         int a{5};
>         float z(0.5);
>         [&a](auto z_) -> void {
>                 decltype(a) b = a;
>         }(z);
>         return 0;
> }

That seems to be a different issue, and is fixed on trunk.

Reply via email to