Another pass at checking for illegal declarations.