Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8359216

Test test_enableIf.cpp fails to compile with error C2244

XMLWordPrintable

    • 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

            jnordstrom Joakim Nordström
            jnordstrom Joakim Nordström
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: