fix issue 10792 - Bad diagnostic on new eponymous enum template syntax

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