From eee739fcdc4c1f8672e81f37b77e21640ce46701 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sun, 16 Mar 2008 18:37:39 +0000 Subject: [PATCH] template typedefs are not supposed to be incomplete types --- pybindgen/gccxmlparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pybindgen/gccxmlparser.py b/pybindgen/gccxmlparser.py index 8b88eca..658aa68 100644 --- a/pybindgen/gccxmlparser.py +++ b/pybindgen/gccxmlparser.py @@ -577,6 +577,8 @@ class ModuleParser(object): cls = alias.type.declaration if not isinstance(cls, class_declaration_t): continue # fully defined classes handled further below + if templates.is_instantiation(cls.decl_string): + continue # typedef to template instantiations, must be fully defined global_annotations, param_annotations = \ annotations_scanner.get_annotations(cls.location.file_name,