Debian Codegraph @

test-suite/bugs/bug_3001.v

raw
1 Definition my_fun (n:nat) := n.
2
3 Section My_Sec.
4 Global Arguments my_fun x : rename.
5 End My_Sec.
6
7 (* The following code suffices to trigger it, on my system:
8
9 Definition my_fun (n:nat) := n.
10
11 Section My_Sec.
12 Global Arguments my_fun x : rename.
13 End My_Sec.
14
15 The `Global Arguments` declaration succeeds fine, but the `End My_Sec` fails, with `Anomaly: dirpath_prefix: empty dirpath. Please report.`
16
17 If `Global` is removed, or if no arguments are renamed, then everything works as expected.
18
19 If other declarations go between the `Global Arguments` and the `End My_Sec`, then the other declarations work normally, but the `End My_Sec` still fails.
20
21 Previously reported at https://github.com/HoTT/coq/issues/24 . Occurs in both 8.4 and current trunk. *)