Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
__MODULE__ aborts the compiler/toplevel if the module name cannot be inferred #6547
Original bug ID: 6547
Fatal error: exception Invalid_argument("Filename.chop_extension")
% cat blah
% ocamlc -impl blah
Comment author: @garrigue
It does not seem to be related to -o either: it just seems that the code for MODULE was weak from the beginning. Was it introduced by Fabrice?
Note that -o uses chop_extension_with_any, so it works with names that do not have an extension too.