aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interp/constrextern.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index 2339fdad69..e3a408c0da 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -712,7 +712,7 @@ let shortest_qualid_of_v7_global ctx ref =
then
(* An unqualified name that is not renamed but which coincides *)
(* with a new name: force qualification unless it is a variable *)
- if fulldir <> empty_dirpath
+ if fulldir <> empty_dirpath & not (is_coq_root fulldir)
then make_dirpath [List.hd (repr_dirpath fulldir)]
else empty_dirpath
else dir