fix issue 10792 - Bad diagnostic on new eponymous enum template syntax
Merge pull request #2465 from hpohl/10792

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