-
Bug
-
Resolution: Fixed
-
P3
-
21
-
None
-
master
-
windows
Compiling the gtest "test_enableIf.cpp" with Visual Studio 2022 17.13.2, Windows 11 SDK 10.0.26100.0 fails with:
Creating hotspot/variant-server/libjvm/gtest/jvm.dll from 1 file(s)
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): error C2244: 'TestEnableIfNested<T>::sub1': unable to match function definition to an existing declaration
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: see declaration of 'TestEnableIfNested<T>::sub1'
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: definition
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: 'U TestEnableIfNested<T>::sub1(U)'
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: existing declarations
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(70): note: 'U TestEnableIfNested<T>::sub1(U)'
make[3]: *** [lib/CompileGtest.gmk:97: jdk21u-cpu/build/windows-x64/hotspot/variant-server/libjvm/gtest/objs/test_enableIf.obj] Error 1
make[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
Creating hotspot/variant-server/libjvm/gtest/jvm.dll from 1 file(s)
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): error C2244: 'TestEnableIfNested<T>::sub1': unable to match function definition to an existing declaration
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: see declaration of 'TestEnableIfNested<T>::sub1'
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: definition
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: 'U TestEnableIfNested<T>::sub1(U)'
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(75): note: existing declarations
jdk21u-cpu\open\test\hotspot\gtest\metaprogramming\test_enableIf.cpp(70): note: 'U TestEnableIfNested<T>::sub1(U)'
make[3]: *** [lib/CompileGtest.gmk:97: jdk21u-cpu/build/windows-x64/hotspot/variant-server/libjvm/gtest/objs/test_enableIf.obj] Error 1
make[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
- relates to
-
JDK-8360042 GHA: Bump MSVC to 14.44
-
- New
-