Skip to content

Can't compile a filename containing "-" character in OCaml 4.11 on AMD64 #9461

@rwmjones

Description

@rwmjones

perl4caml contains an old test which is literally called 001-start.ml. This fails to compile on x86-64 only with the new compiler:

ocamlopt -w s -I wrappers -c test/001-start.ml
File "test/001-start.ml", line 1:
Warning 24: bad source file name: "001-start" is not a valid module name.
/tmp/camlasm8c525e.s: Assembler messages:
/tmp/camlasm8c525e.s:59: Error: expected comma after name `caml001' in .size directive
File "test/001-start.ml", line 1:
Error: Assembler error, input left in file /tmp/camlasm8c525e.s

While we should obviously rename the test, this appears to be an unintentional regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions