Produce an error for duplicate capture group names.