warn for duplicates in cclasses, like std does