aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/llvm-reduce.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2020-08-22 12:05:17 -0500
committerMichael Kruse <llvm-project@meinersbur.de>2020-08-22 12:16:10 -0500
commit2aaa5a546ea016b8e2092ced1bd7147db51d483a (patch)
tree0ccc286805f969f968a6ebf551fa646f7e6b65ec /llvm/tools/llvm-reduce/llvm-reduce.cpp
parentc0c3cafa2bdaaf878a6b544837073d3d92fbb797 (diff)
downloadllvm-2aaa5a546ea016b8e2092ced1bd7147db51d483a.zip
llvm-2aaa5a546ea016b8e2092ced1bd7147db51d483a.tar.gz
llvm-2aaa5a546ea016b8e2092ced1bd7147db51d483a.tar.bz2
[flang][msvc] Disambiguate injected class name.
The identifier `Expr` within the scope of the Expr class (including its temple specializations) refers to the current template/instantiation (see https://en.cppreference.com/w/cpp/language/injected-class-name for details). The `MapTemplate` template expect a non-instantiated template as the first template argument, not the concrete instantiation of `Expr`. At least msvc interprets `Expr` as the injected class name, whereas gcc and clang use the global `flang::evaluate::Expr` template. Disambiguate by explicitly using the namespace. This patch is part of the series to [[ http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html | make flang compilable with MS Visual Studio ]]. Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D85646
Diffstat (limited to 'llvm/tools/llvm-reduce/llvm-reduce.cpp')
0 files changed, 0 insertions, 0 deletions