[all-commits] [llvm/llvm-project] c58dfb: [flang][msvc] Avoid range-based for over initializ...

Michael Kruse via All-commits all-commits at lists.llvm.org
Tue Sep 8 22:22:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c58dfbdc818275dd0e8f34939a95da546c49cdf6
      https://github.com/llvm/llvm-project/commit/c58dfbdc818275dd0e8f34939a95da546c49cdf6
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M flang/include/flang/Common/enum-set.h

  Log Message:
  -----------
  [flang][msvc] Avoid range-based for over initializer_list. NFC.

Msvc crashes with "INTERNAL COMPILER ERROR" when iterating over an `std::initializer_list` in a constexpr constructor. Explicitly use the iterator instead.

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: isuruf

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




More information about the All-commits mailing list