compiler: don't allow to access an enum members through the enum member. It should be only possible throught the enum type name. Fixes issue #0025029

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25493 3ad0048d-3df7-0310-abae-a5850022a9f2