fix issue 10788 - forward reference of enum member E from another module
Merge pull request #2462 from hpohl/10788

[REG??] fix issue 10788 - forward reference of enum member E from another module