Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A type called Test with a function called Test<something> confuses us #979

Closed
adetaylor opened this issue Mar 31, 2022 · 2 comments · Fixed by #992
Closed

A type called Test with a function called Test<something> confuses us #979

adetaylor opened this issue Mar 31, 2022 · 2 comments · Fixed by #992
Labels
bug Something isn't working

Comments

@adetaylor
Copy link
Collaborator

#include <testing/gtest/include/gtest/gtest.h>
generate!("testing::Test")

==> fails to compile because the class is abstract

@adetaylor adetaylor added the bug Something isn't working label Mar 31, 2022
@adetaylor
Copy link
Collaborator Author

Minimized test case:

namespace std {
namespace {
template <class a, a> struct b {};
template <bool c> using d = b<bool, c>;
typedef d<0> false_type;
template <class> class unique_ptr;
} // namespace
} // namespace std
namespace testing {
class Test {
  virtual void TestBody() = 0;
};
} // namespace testing
namespace rust {
inline namespace cxxbridge1 {
class Str {};
} // namespace cxxbridge1
} // namespace rust

adetaylor added a commit that referenced this issue Apr 2, 2022
These were previously mistaken as constructors.

Fixes #979.
@adetaylor
Copy link
Collaborator Author

Remaining (more niche) issue filed as #995.

@adetaylor adetaylor changed the title Failing to spot test::Test is abstract A type called Test with a function called Test<something> confuses us Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant