google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
33.76k stars 10k forks source link

XCode 8.1 build failure on gmock-actions.h due to missing user constructor for ExcessiveArg type #3128

Open dneto0 opened 3 years ago

dneto0 commented 3 years ago

A colleague using XCode 8.1 reports a build failure

In file included from /Users/dkoch/khronos/github/glslang/External/googletest/googlemock/src/gmock-all.cc:39:
In file included from /Users/dkoch/khronos/github/glslang/External/googletest/googlemock/include/gmock/gmock.h:59:
/Users/dkoch/khronos/github/glslang/External/googletest/googlemock/include/gmock/gmock-actions.h:1523:31: error: 
      default initialization of an object of const type 'const testing::internal::ExcessiveArg' without a
      user-provided default constructor
    static const ExcessiveArg kExcessArg;
                              ^
                                        {}
1 error generated.

This appears to be caused by https://github.com/google/googletest/commit/fbef0711cfce7b8f149aac773d30ae48ce3e166c

dneto0 commented 3 years ago

cc: @dgkoch

greg-lunarg commented 3 years ago

This is also a problem with glslang Travis CI build. See https://github.com/KhronosGroup/glslang/pull/2472

juan-lunarg commented 8 months ago

@asoffer feel free to close this issue. Or any other google test maintainer (@dinord / @derekmauro ). The original reason it was opened doesn't exist anymore.