Skip to content

ocamldep does not handle SEMISEMI correctly #7793

Closed

Description

@vicuna

Original bug ID: 7793
Reporter: @hhugo
Assigned to: @nojb
Status: closed (set by @nojb on 2018-05-23T23:10:02Z)
Resolution: fixed
Priority: normal
Severity: minor
Category: tools (ocaml{lex,yacc,dep,debug,...})
Monitored by: @nojb

Bug description

The following program is accepted by the ocaml compiler but not by ocamldep

;;

;;2

Activity

  1. vicuna commented on May 6, 2018

    @vicuna
    Author
  2. vicuna commented on May 6, 2018

    @vicuna
    Author

    Comment author: @nojb

    At first sight it seems the difference is that ocamldep parses .ml files using Parse.use_file and the compiler uses Parse.implementation. For .mli files both use Parse.interface.

    Anyone remembers the reason for the different handling of .ml files?

  3. vicuna commented on May 6, 2018

    @vicuna
    Author

    Comment author: @nojb

    #1766

  4. vicuna commented on May 7, 2018

    @vicuna
    Author

    Comment author: @hhugo

    commit 89077f5
    Author: Damien Doligez <damien.doligez-inria.fr>
    Date: Fri Aug 10 07:19:12 2012 +0000

    Make ocamldep ignore toplevel directives in .ml files, as it did before
    commit 12769.
    
  5. vicuna commented on May 23, 2018

    @vicuna
    Author

    Comment author: @hhugo

    GPR merged. This can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions