From 5a22bcf0070a08e22a38055ee76cca5bfe919dce Mon Sep 17 00:00:00 2001 From: Vladimir Kalinin Date: Tue, 14 Aug 2018 21:25:35 +0300 Subject: [PATCH] Nested structures in "C" mode symbol table fix --- Source/CParse/parser.y | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index b9268cf03..91ab94c52 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -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);