Skip to content

Commit 9e6408d

Browse files
committed
Fix relinking of unnamed classes (issue #45)
With gcc5 + castxml + std=c++11 some code was not parseable by pygccxml (see previous commit). This fixes the problem, but is probably not the final solution, but as the other cases in the relink method, a better understanding of this code part should hopefully help find a better strategy to handle these cases.
1 parent 85e2700 commit 9e6408d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pygccxml/parser/project_reader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ def _relink_declarated_types(self, leaved_classes, declarated_types):
521521
else:
522522

523523
name = decl_wrapper_type.declaration._name
524+
if name == "":
525+
# Happens with gcc5, castxml + std=c++11 (see issue #45)
526+
continue
524527
if name.startswith("__vmi_class_type_info_pseudo"):
525528
continue
526529
if name == "rebind<std::__tree_node" + \

0 commit comments

Comments
 (0)