Detects invalid declarations of constants