EU leaders discuss anti-terror measures