seg fault fix when parsing incorrect C++ namespace code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
36759b3303
commit
337f63fd28
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
|||
Version 1.3.32 (in progress)
|
||||
============================
|
||||
|
||||
03/16/2007: wsfulton
|
||||
Fix seg fault given dodgy C++ code: namespace abc::def { }
|
||||
|
||||
03/16/2007: wsfulton
|
||||
[Java] Fixes so that ARRAYSOFCLASSES and ARRAYSOFENUMS in arrays_java.i can be applied
|
||||
to pointer types.
|
||||
|
|
|
|||
|
|
@ -520,7 +520,9 @@ class TypePass:private Dispatcher {
|
|||
} else {
|
||||
if (name) {
|
||||
Node *nn = Swig_symbol_clookup(name, n);
|
||||
Hash *ts = Getattr(nn, "typescope");
|
||||
Hash *ts = 0;
|
||||
if (nn)
|
||||
Getattr(nn, "typescope");
|
||||
if (!ts) {
|
||||
SwigType_new_scope(name);
|
||||
SwigType_attach_symtab(Getattr(n, "symtab"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue