1 // RUN: %clang_cc1 -std=c++17 -fblocks -DSHOW_MS -Wno-unused-value -fms-compatibility -fdelayed-template-parsing -fsyntax-only -verify %s
2 template <typename RT
, typename ET
>
3 void Decider(const RT
&sp
, ET
&ep
) {
4 [=](auto i
) { ep
[i
] = sp
[i
+ j
]; };
5 // expected-error@-1 {{use of undeclared identifier 'j'}}
8 template <typename EMT
> void LS() {
14 LS
<int>(); // expected-note {{in instantiation of}}