From 2bc589bbb8d7d00f5939e9cd33cbe57e47d61f7e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 22 Sep 2020 14:17:46 -0500 Subject: [PATCH] [flang][msvc] Add explicit function template argument to applyFunction. NFC. Msvc has difficulties deducing the template argument here. The error message is: ``` basic-parsers.h(790,12): error C2672: 'applyFunction': no matching overloaded function found ``` Explicitly pass the first template argument to help it. This patch is part of the series to make flang compilable with MS Visual Studio . Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D87961 --- flang/lib/Parser/basic-parsers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flang/lib/Parser/basic-parsers.h b/flang/lib/Parser/basic-parsers.h index c92ece0ef677..7f349d7b4ff4 100644 --- a/flang/lib/Parser/basic-parsers.h +++ b/flang/lib/Parser/basic-parsers.h @@ -787,7 +787,8 @@ public: constexpr NonemptySeparated(const NonemptySeparated &) = default; constexpr NonemptySeparated(PA p, PB sep) : parser_{p}, separator_{sep} {} std::optional Parse(ParseState &state) const { - return applyFunction(prepend, parser_, many(separator_ >> parser_)) + return applyFunction>( + prepend, parser_, many(separator_ >> parser_)) .Parse(state); }