Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllRefine fails on master for a simple program with an abstract type #410

Open
amblafont opened this issue Oct 22, 2021 · 2 comments
Open

Comments

@amblafont
Copy link
Contributor

amblafont commented Oct 22, 2021

Consider the simple cogent program

type U7
main : U7 -> U7
main a = a

If I prepend the generated C file with typedef struct U7 { int valeur; } U7;(to give an implementation to the abstract type), AllRefine fails with the error message

Duplicate constant declaration "local.corres" vs. "local.corres"⌂
The above error(s) occurred while activating locale instance
update_sem_init "upd_abs_typing" "abs_repr"

on the line

sublocale Generated_cogent_shallow ⊆ Generated _ upd_abs_typing abs_repr
@amblafont
Copy link
Contributor Author

amblafont commented Oct 26, 2021

It turns out that the issue I encountered happens when the cogent filename starts with a capital letter (whatever the content of the file is). Maybe the compiler should raise a warning in this case (or we could try to fix the bug)

@zilinc
Copy link

zilinc commented Oct 26, 2021

Can you elaborate why it fails with a capital letter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants