Closed RalfJung closed 8 years ago
Ugh, the From ... Require ...
construct is terrible. First, From ... Import ...
fails. Second, bug #4585. But I've pushed a change that adds a pass to fix this, I hope.
Not sure what you mean, From ... Require Import ...
works fine. Or did you mean just Import
, no Require
? From
is an extension of Require
, not of Import
or Export
, it seems.
But yeah, the semantics are weird. Also see https://github.com/ProofGeneral/PG/issues/55#issuecomment-185623828.
In Coq 8.4, replacing Require Import
with Require
was a valid transformation. This is no longer the case in 8.5, as Require
can come from From ... Require ...
.
By the way, thanks for the report!
Thanks for the quick fix :)
Steps to reproduce:
find-bug.py -Q . "" algebra/cmra.v evar.v
Actual behavior:
Expected behavior: It should get the error message right. The problem is that it turned
From algebra Require Export cofe.
intoFrom algebra Require Export algebra.cofe.
, which is wrong.