Fix uncompileable code when %rename results in two enum items with the same name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d30054b5f6
commit
257ce20f30
4 changed files with 17 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ class TypePass:private Dispatcher {
|
|||
|
||||
bool reset;
|
||||
String *enumvalue = Getattr(c, "enumvalue");
|
||||
if (GetFlag(c, "feature:ignore")) {
|
||||
if (GetFlag(c, "feature:ignore") || !Getattr(c, "sym:name")) {
|
||||
reset = enumvalue ? true : false;
|
||||
previous_ignored = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue