fix issue 9710 - Pointer enums crash dmd

http://d.puremagic.com/issues/show_bug.cgi?id=9710