HomePhabricator

[flang][msvc] Remove default arguments for function specializations.

Authored by Meinersbur on Aug 12 2020, 1:02 PM.

Description

[flang][msvc] Remove default arguments for function specializations.

C++ does not allow function template specializations to have default arguments. IIUC callers will only use the default arguments of the primary template. gcc and clang accept the syntax anyway, but msvc emits an error.

See https://en.cppreference.com/w/cpp/language/template_specialization for more details.

This patch is part of the series to make flang compilable with MS Visual Studio.

Reviewed By: DavidTruby

Differential Revision: https://reviews.llvm.org/D85657