Skip to content

Commit b8f34b2

Browse files
fix type creation for typedef to class pointer
example: ```c++ class A; typedef A* A_ptr_t; ```
1 parent 45c3494 commit b8f34b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ProxyWrappers.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,8 @@ PyObject* CPyCppyy::CreateScopeProxy(const std::string& name, PyObject* parent,
577577
} else if (Cppyy::TCppScope_t klass = Cppyy::GetScope(name, parent_scope)) {
578578
if (Cppyy::IsTypedefed(klass) &&
579579
Cppyy::IsPointerType(Cppyy::GetTypeFromScope(klass)) &&
580-
Cppyy::IsClass(Cppyy::GetUnderlyingScope(klass)) &&
581-
!Cppyy::IsComplete(Cppyy::GetUnderlyingScope(klass)))
582-
return nullptr; // this is handled by the caller; typedef to undefined class pointer
580+
Cppyy::IsClass(Cppyy::GetUnderlyingScope(klass)))
581+
return nullptr; // this is handled by the caller; typedef to class pointer
583582
return CreateScopeProxy(klass, parent, flags);
584583
} else if (Cppyy::IsBuiltin(name)) {
585584
Cppyy::TCppType_t type = Cppyy::GetType(name);

0 commit comments

Comments
 (0)