Index: unittests/ASTMatchers/ASTMatchersTest.h =================================================================== --- unittests/ASTMatchers/ASTMatchersTest.h +++ unittests/ASTMatchers/ASTMatchersTest.h @@ -79,6 +79,8 @@ // Some tests need rtti/exceptions on Args.push_back("-frtti"); Args.push_back("-fexceptions"); + // Keep the same template handling behavior on Windows and Linux. + Args.push_back("-fno-delayed-template-parsing"); if (!runToolOnCodeWithArgs( Factory->create(), Code, Args, Filename, "clang-tool", std::make_shared(), VirtualMappedFiles)) {