https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113798
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I'm not sure if it's my bug or one of the decltype-in-lambda PRs, but x5 should be deduced to int but we deduce it to int& :(. x6 works fine. ``` void fn1 () { int i = 0; [&i](auto... pack) { decltype(pack...[0]) x5 = 42; // type is int decltype((pack...[0])) x6 = i; // type is int& }(0); } ```