[clang] [clang][bytecode] Support compile-time exceptions (PR #189410)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 30 08:52:56 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Source.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Source.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Source.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Source.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Source.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Source.h:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpBlock.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpBlock.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\InterpBlock.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBlock.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBlock.cpp:13:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBlock.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Descriptor.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Descriptor.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Descriptor.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/PrimType.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/PrimType.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\PrimType.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.cpp:9:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpStack.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpStack.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\InterpStack.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpFrame.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpFrame.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\InterpFrame.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.h:17:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBlock.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp:13:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(179,27): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
179 |                           S.getASTContext().getPrintingPolicy(),
|                           ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(188,35): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
188 |                                   S.getASTContext().getPrintingPolicy(),
|                                   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(192,28): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
192 |       print(OS, getThis(), S.getASTContext(),
|                            ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(193,13): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
193 |             S.getASTContext().getLValueReferenceType(
|             ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(194,17): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
194 |                 S.getASTContext().getCanonicalTagType(M->getParent())));
|                 ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(199,31): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
199 |   F->getNameForDiagnostic(OS, S.getASTContext().getPrintingPolicy(),
|                               ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpFrame.cpp(213,53): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
213 |     TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty));
|                                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Function.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Function.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Function.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Function.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Function.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Function.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/ByteCodeEmitter.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/ByteCodeEmitter.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\ByteCodeEmitter.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\ByteCodeEmitter.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\ByteCodeEmitter.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\ByteCodeEmitter.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/DynamicAllocator.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/DynamicAllocator.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\DynamicAllocator.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\DynamicAllocator.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\DynamicAllocator.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\DynamicAllocator.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\DynamicAllocator.cpp:11:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
3 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Disasm.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Disasm.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Disasm.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Disasm.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Disasm.cpp:14:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/MemberPointer.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/MemberPointer.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\MemberPointer.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Context.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Context.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Context.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.h:17:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\EvalEmitter.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(75,5): error: no matching member function for call to 'CCEDiag'
75 |   S.CCEDiag(E, diag::note_constexpr_overflow) << SrcValue << E->getType();
|   ~~^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(76,10): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
76 |   return S.noteUndefinedBehavior();
|          ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(80,20): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
80 |   uint64_t Limit = S.getLangOpts().ConstexprStepLimit;
|                    ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(82,7): error: no matching member function for call to 'FFDiag'
82 |     S.FFDiag(S.Current->getSource(OpPC),
|     ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(99,5): error: no matching member function for call to 'FFDiag'
99 |   S.FFDiag(Loc, diag::note_invalid_subexpr_in_const_expr)
|   ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(123,45): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
123 |           ConstantArrayType::getMaxSizeBits(S.getASTContext()) ||
|                                             ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(129,11): error: no matching member function for call to 'FFDiag'
129 |         S.FFDiag(Loc, diag::note_constexpr_new_negative)
|         ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(130,48): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
130 |             << NumElements->toDiagnosticString(S.getASTContext());
|                                                ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(132,11): error: no matching member function for call to 'FFDiag'
132 |         S.FFDiag(Loc, diag::note_constexpr_new_too_large)
|         ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp:16:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(133,48): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
133 |             << NumElements->toDiagnosticString(S.getASTContext());
|                                                ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(66,8): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
66 |   if (!C.interpretCall(FD, E)) {
|        ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(67,5): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
67 |     C.cleanup();
|     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(78,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
78 |   auto Res = C.interpretExpr(E, /*ConvertResultToRValue=*/E->isGLValue());
|              ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(81,5): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
81 |     C.cleanup();
|     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(89,5): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
89 |     C.cleanup();
|     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.cpp(109,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'Compiler<EvalEmitter>'
109 |   auto Res = C.interpretExpr(E, /*ConvertResultToRValue=*/false,
|              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpBuiltinBitCast.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpBuiltinBitCast.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\InterpBuiltinBitCast.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp:11:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp:14:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(186,7): error: no matching member function for call to 'FFDiag'
186 |     S.FFDiag(E, diag::note_constexpr_bit_cast_invalid_type)
|     ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(192,5): error: cannot initialize object parameter of type 'clang::interp::State' with an expression of type 'InterpState'
192 |     S.Note(NoteRange.getBegin(), diag::note_constexpr_bit_cast_invalid_subtype)
|     ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(224,34): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
224 |       !CheckBitcastType(S, OpPC, S.getASTContext().getBaseElementType(T),
|                                  ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(229,32): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
229 |     const ASTContext &ASTCtx = S.getASTContext();
|                                ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(241,9): error: no matching member function for call to 'FFDiag'
241 |       S.FFDiag(E, diag::note_constexpr_bit_cast_invalid_vector)
|       ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(252,9): error: no matching member function for call to 'FFDiag'
252 |       S.FFDiag(E, diag::note_constexpr_bit_cast_unsupported_type) << EltTy;
|       ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(338,55): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
338 |   QualType DataType = Ptr.getFieldDesc()->getDataType(S.getASTContext());
|                                                       ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(346,30): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
346 |   const ASTContext &ASTCtx = S.getASTContext();
|                              ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(361,30): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
361 |   const ASTContext &ASTCtx = S.getASTContext();
|                              ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(374,59): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
374 |   QualType FromType = FromPtr.getFieldDesc()->getDataType(S.getASTContext());
|                                                           ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(375,55): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
375 |   QualType ToType = ToPtr.getFieldDesc()->getDataType(S.getASTContext());
|                                                       ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(382,30): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
382 |   const ASTContext &ASTCtx = S.getASTContext();
|                              ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(430,15): error: no matching member function for call to 'FFDiag'
430 |             S.FFDiag(E, diag::note_constexpr_bit_cast_indet_dest)
|             ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpBuiltinBitCast.cpp(431,31): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
431 |                 << PtrType << S.getLangOpts().CharIsSigned
|                               ^
17 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Compiler.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Compiler.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Compiler.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\ByteCodeEmitter.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.h:17:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\EvalEmitter.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(240,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
240 |       return this->emitInvalidCast(CastKind::Volatile, /*Fatal=*/true, E);
|              ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(8117,16): note: in instantiation of member function 'clang::interp::Compiler<clang::interp::EvalEmitter>::VisitCastExpr' requested here
8117 | template class Compiler<EvalEmitter>;
|                ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(253,22): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
253 |               return this->emitGetGlobal(*SubExprT, *GlobalIndex, E);
|                      ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(270,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
270 |       if (!this->emitGetPtrLocal(*LocalIndex, E))
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(278,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
278 |       return this->emitLoadPop(*SubExprT, E);
|              ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(283,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
283 |     return this->emitMemcpy(E);
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(302,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
302 |       if (!this->emitCastMemberPtrBasePop(DerivedOffset, ToDecl, E))
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(331,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
331 |       if (!this->emitCastMemberPtrDerivedPop(-DerivedOffset, ToDecl, E))
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(341,10): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
341 |     if (!this->emitCastMemberPtrDerivedPop(-DerivedOffset, ToDecl, E))
|          ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(363,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
363 |         if (!this->emitGetPtrVirtBasePop(extractRecordDecl(B->getType()), E))
|              ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(387,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
387 |     return this->emitGetPtrDerivedPop(DerivedOffset,
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(400,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
400 |     return this->emitCastFP(TargetSemantics, getRoundingMode(E), E);
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(409,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
409 |     return this->emitCastIntegralFloating(classifyPrim(SubExpr),
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(418,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
418 |       return this->emitConstBool(FL->getValue().isNonZero(), E);
|              ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(421,12): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
421 |     return this->emitCastFloatingIntegralBool(getFPOptions(E), E);
|            ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(431,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
431 |       return this->emitCastFloatingIntegralAP(Ctx.getBitWidth(E->getType()),
|              ^~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Compiler.cpp(434,14): error: cannot initialize object parameter of type 'clang::interp::EvalEmitter' with an expression of type 'clang::interp::Compiler<EvalEmitter>'
434 |       return this->emitCastFloatingIntegralAPS(Ctx.getBitWidth(E->getType()),
|              ^~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Program.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Program.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Program.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Program.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Program.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Program.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Function.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpState.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/InterpState.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\InterpState.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp:9:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp(117,8): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'clang::interp::InterpState'
117 |   if (!checkingPotentialConstantExpression()) {
|        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp(121,7): error: no matching member function for call to 'CCEDiag'
121 |       CCEDiag(Source->getExprLoc(), diag::note_constexpr_memory_leak)
|       ^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp(127,32): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'clang::interp::InterpState'
127 |   return NoAllocationsLeft || !getLangOpts().CPlusPlus20;
|                                ^~~~~~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.cpp(168,3): error: no matching member function for call to 'FFDiag'
168 |   FFDiag(Current->getSource(OpPC), diag::note_constexpr_step_limit_exceeded);
|   ^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'clang::interp::InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
7 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Pointer.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Pointer.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Pointer.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Interp.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ByteCode/Interp.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ByteCode\Interp.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\DynamicAllocator.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h:13:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(44,3): error: unknown type name 'AnyPrimType'
44 |   AnyPrimType Value;
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpState.h(64,36): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'const clang::interp::InterpState'
64 |   bool diagnosing() const { return getEvalStatus().Diag != nullptr; }
|                                    ^~~~~~~~~~~~~
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(75,5): error: no matching member function for call to 'CCEDiag'
75 |   S.CCEDiag(E, diag::note_constexpr_overflow) << SrcValue << E->getType();
|   ~~^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(76,10): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
76 |   return S.noteUndefinedBehavior();
|          ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(80,20): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
80 |   uint64_t Limit = S.getLangOpts().ConstexprStepLimit;
|                    ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(82,7): error: no matching member function for call to 'FFDiag'
82 |     S.FFDiag(S.Current->getSource(OpPC),
|     ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(99,5): error: no matching member function for call to 'FFDiag'
99 |   S.FFDiag(Loc, diag::note_invalid_subexpr_in_const_expr)
|   ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(123,45): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
123 |           ConstantArrayType::getMaxSizeBits(S.getASTContext()) ||
|                                             ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(129,11): error: no matching member function for call to 'FFDiag'
129 |         S.FFDiag(Loc, diag::note_constexpr_new_negative)
|         ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(130,48): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
130 |             << NumElements->toDiagnosticString(S.getASTContext());
|                                                ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(132,11): error: no matching member function for call to 'FFDiag'
132 |         S.FFDiag(Loc, diag::note_constexpr_new_too_large)
|         ~~^~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(140,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
140 |   FFDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(130,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
130 |   FFDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(135,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
135 |   FFDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h:26:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpHelpers.h(133,48): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
133 |             << NumElements->toDiagnosticString(S.getASTContext());
|                                                ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(153,7): error: no matching member function for call to 'CCEDiag'
153 |     S.CCEDiag(Loc, diag::note_constexpr_negative_shift) << RHS.toAPSInt();
|     ~~^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(154,10): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
154 |     if (!S.noteUndefinedBehavior())
|          ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(164,7): error: no matching member function for call to 'CCEDiag'
164 |     S.CCEDiag(E, diag::note_constexpr_large_shift) << Val << Ty << Bits;
|     ~~^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.cpp:9:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(165,10): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
165 |     if (!S.noteUndefinedBehavior())
|          ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(170,28): error: cannot initialize object parameter of type 'const clang::interp::State' with an expression of type 'InterpState'
170 |     if (LHS.isSigned() && !S.getLangOpts().CPlusPlus20) {
|                            ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Interp.h(175,11): error: no matching member function for call to 'CCEDiag'
175 |         S.CCEDiag(E, diag::note_constexpr_lshift_of_negative) << LHS.toAPSInt();
|         ~~^~~~~~~
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(155,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
155 |   CCEDiag(const Expr *E,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(160,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
160 |   CCEDiag(SourceInfo SI,
|   ^
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\State.h(150,3): note: candidate function not viable: no known conversion from 'InterpState' to 'clang::interp::State' for object argument
150 |   CCEDiag(SourceLocation Loc,
|   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>
<details>
<summary>[code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ExprConstant.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/ExprConstant.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\lib\AST -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ExprConstant.cpp.obj /Fdtools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\lib\AST\ExprConstant.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ExprConstant.cpp:35:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode/Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\lib\AST\ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ByteCode/Descriptor.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ByteCode/Descriptor.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\unittests -IC:\_work\llvm-project\llvm-project\clang\unittests -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\clang\unittests\Tooling -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override /showIncludes /Fotools\clang\unittests\CMakeFiles\AllClangUnitTests.dir\AST\ByteCode\Descriptor.cpp.obj /Fdtools\clang\unittests\CMakeFiles\AllClangUnitTests.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\Descriptor.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\Descriptor.cpp:1:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode/Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>
<details>
<summary>[code=1] tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ByteCode/toAPValue.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/AST/ByteCode/toAPValue.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\unittests -IC:\_work\llvm-project\llvm-project\clang\unittests -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\clang\unittests\Tooling -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override /showIncludes /Fotools\clang\unittests\CMakeFiles\AllClangUnitTests.dir\AST\ByteCode\toAPValue.cpp.obj /Fdtools\clang\unittests\CMakeFiles\AllClangUnitTests.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\toAPValue.cpp
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\toAPValue.cpp:1:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode/Context.h:19:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\InterpStack.h:18:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\MemberPointer.h:12:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\Pointer.h:16:
In file included from C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\Descriptor.h:17:
C:\_work\llvm-project\llvm-project\clang\unittests\AST\ByteCode\../../../lib/AST/ByteCode\PrimType.h(52,26): error: no template named 'variant' in namespace 'std'
52 | using AnyPrimType = std::variant<
|                     ~~~~~^
1 error generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/189410


More information about the cfe-commits mailing list