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