Revert "parse const the same as global and local. fixes #7314"

This reverts commit 135f2fb96ee2b4fcc949bbf759ecf08bca99b2f0.