[flang-commits] [PATCH] D86410: [flang][msvc] Avoid ambiguous overload from base class. NFC.

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Aug 24 09:16:24 PDT 2020


klausler added a comment.

In D86410#2233859 <https://reviews.llvm.org/D86410#2233859>, @Meinersbur wrote:

> What is your alternative suggestion to fix the compiler error?

Is the MSVC bug peculiar to template member functions like `template <int K> operator()(const TypeParamInquiry<K> &) const`?  If so, is it peculiar to *just* `TypeParamInquiry`, or does it affect other templatized expression nodes as well?  If that turns out to be the case, there's some changes to the expression representation that could be tried that would avoid the use of a template in that case.

Another possible work-around, if the problem is specific to this one expression representation class: specialize the member function in the general `Traverse` class for each of the integer kinds.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86410/new/

https://reviews.llvm.org/D86410



More information about the flang-commits mailing list