Skip to content

MOCK_METHOD with an std::any argument doesn't compile with clang 9.0.0 #2616

@daravi

Description

@daravi

As the title says, the compiler returns:

.../llvm-9.0.0/bin/../include/c++/v1/type_traits:2843:14: error: base class has incomplete type
...
in instantiation of template class 'testing::internal::MockSpec<std::__1::basic_string<char> (const std::__1::any &)>' requested here
     MOCK_METHOD1(doSomething, std::string(const std::any& data));
     ^

Issue only occurred when I switched from GCC to Clang.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions