Merge branch 'wkalinin-duplicate-unions'

* wkalinin-duplicate-unions:
  Add testcase for nested C struct name conflict
  Nested structures in "C" mode symbol table fix
This commit is contained in:
William S Fulton 2018-08-20 19:22:31 +01:00
commit 3baf6e9f97
4 changed files with 71 additions and 1 deletions

View file

@ -3862,6 +3862,7 @@ cpp_class_decl : storage_class cpptype idcolon inherit LBRACE {
while (Getattr(outer, "nested:outer"))
outer = Getattr(outer, "nested:outer");
appendSibling(outer, $$);
Swig_symbol_setscope(cscope); /* declaration goes in the parent scope */
add_symbols($9);
set_scope_to_global();
Delete(Namespaceprefix);