google / google/googletest

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

Open
#3,128 3 comments 1 reaction 1 assignee Claimed by @asoffer View on GitHub
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.