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