Skip to content

Commit d6077f7

Browse files
committed
Add enums to module scope symtab
1 parent 715731f commit d6077f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Modules/fortran.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,8 @@ int FORTRAN::enumDeclaration(Node *n) {
28692869
}
28702870

28712871
if (!fsymtab) {
2872-
fsymtab = NewHash();
2872+
// Use module scope
2873+
fsymtab = this->symbolScopeLookup(NULL);
28732874
}
28742875
if (fsymname) {
28752876
String *lower_fsymname = Swig_string_lower(fsymname);

0 commit comments

Comments
 (0)