[PATCH] D125263: [CMake][MSVC] Compile with `/permissive-`

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 22 12:35:51 PDT 2022


efriedma added a comment.

> We are seeing failures in our internal Windows build with an older version of the Visual C++ compiler that I bisected back to this commit. The errors are all similar to this:

I don't see any obvious reason for this to fail, or be affected by /permissive-.  Can you attach and/or send me preprocessed source for the failing file?

-------------

I assume the issue with std::max was that "/permissive-" turns on two-phase lookup... but clang-cl and cl have slightly different views about what exactly two-phase lookup means.  So cl is fine, but clang-cl prints an error (and other platforms are fine because <algorithm> is somehow included anyway).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125263



More information about the llvm-commits mailing list