Check for duplicate const/static/inline.