Fix forward class declaration in a class when used as a base

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-01-17 07:06:22 +00:00
parent 6c80f765ca
commit 459e083b3d
4 changed files with 15 additions and 1 deletions

View File

@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
Version 2.0.5 (in progress)
===========================
2012-01-17: wsfulton
[Go] Fix forward class declaration within a class when used as a base.
2012-01-07: wsfulton
[C#] Add support for %nspace when using directors.

View File

@ -0,0 +1,10 @@
%module class_forward
%inline %{
struct A {
class B;
};
class C : public A {
};
%}

View File

@ -126,6 +126,7 @@ CPP_TEST_CASES += \
casts \
char_binary \
char_strings \
class_forward \
class_ignore \
class_scope_weird \
compactdefaultargs \

View File

@ -1913,7 +1913,7 @@ private:
}
String *type = Getattr(ni, "nodeType");
if (Strcmp(type, "constructor") == 0 || Strcmp(type, "destructor") == 0 || Strcmp(type, "enum") == 0 || Strcmp(type, "using") == 0) {
if (Strcmp(type, "constructor") == 0 || Strcmp(type, "destructor") == 0 || Strcmp(type, "enum") == 0 || Strcmp(type, "using") == 0 || Strcmp(type, "classforward") == 0) {
continue;
}
String *storage = Getattr(ni, "storage");