fix issue 9710 - Pointer enums crash dmd
Merge pull request #2400 from hpohl/9710

fix issue 9710 - Pointer enums crash dmd