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

ok with ocamlc and bugged with ocamlopt #3854

Closed
vicuna opened this issue Oct 7, 2002 · 1 comment
Closed

ok with ocamlc and bugged with ocamlopt #3854

vicuna opened this issue Oct 7, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 7, 2002

Original bug ID: 1420
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Julien Signoles
Version: 3.06
OS: Linux Debian
Submission from: pc803.lri.fr (129.175.8.114)

If there are a compilation unit "foo.ml" in a directory and another "foo.ml" in
another directory,
ocamlc compiles and exit 0 and ocamlopt doesn't compile and exit 2.
You can execute the followed script to see that :

mkdir test
cd test
echo "creation de 'foo.ml' et de 'rep/foo.ml'"
mkdir rep
touch foo.ml
touch rep/foo.ml

echo "ocamlc foo.ml rep/foo.ml"
ocamlc foo.ml rep/foo.ml
echo "$? = $?"

echo "ocamlopt foo.ml rep/foo.ml"
ocamlopt foo.ml rep/foo.ml
echo "$? = $?"

cd ..
rm -rf test

@vicuna
Copy link
Author

vicuna commented Jan 3, 2003

Comment author: administrator

Two compilation units with the same name cannot be used together in one
program.
ocamlopt enforces the rule, ocamlc doesn't.

@vicuna vicuna closed this as completed Jan 3, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant