Fix nested classes symbol table problem due to lack of string copy - due to changes in rev 13938
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
00d969d7fd
commit
8b24933842
1 changed files with 3 additions and 2 deletions
|
|
@ -4633,7 +4633,8 @@ cpp_nested : storage_class cpptype idcolon inherit LBRACE {
|
||||||
$$ = 0;
|
$$ = 0;
|
||||||
if (cplus_mode == CPLUS_PUBLIC) {
|
if (cplus_mode == CPLUS_PUBLIC) {
|
||||||
if (cparse_cplusplus) {
|
if (cparse_cplusplus) {
|
||||||
$$ = nested_forward_declaration($1, $2, $3, $3, $7);
|
String *name = Copy($3);
|
||||||
|
$$ = nested_forward_declaration($1, $2, $3, name, $7);
|
||||||
} else if ($7) {
|
} else if ($7) {
|
||||||
nested_new_struct($2, $<str>6, $7);
|
nested_new_struct($2, $<str>6, $7);
|
||||||
}
|
}
|
||||||
|
|
@ -4659,7 +4660,7 @@ cpp_nested : storage_class cpptype idcolon inherit LBRACE {
|
||||||
$$ = 0;
|
$$ = 0;
|
||||||
if (cplus_mode == CPLUS_PUBLIC) {
|
if (cplus_mode == CPLUS_PUBLIC) {
|
||||||
if (cparse_cplusplus) {
|
if (cparse_cplusplus) {
|
||||||
String *name = $6 ? Getattr($6, "name") : 0;
|
String *name = $6 ? Copy(Getattr($6, "name")) : 0;
|
||||||
$$ = nested_forward_declaration($1, $2, 0, name, $6);
|
$$ = nested_forward_declaration($1, $2, 0, name, $6);
|
||||||
} else {
|
} else {
|
||||||
if ($6) {
|
if ($6) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue