Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005692OCamlfor Camlp4 use 10:522015-12-11 19:07
ReporterHendrik Tews 
Assigned Todim 
PlatformOSOS Version
Product Version4.00.0+beta2/+rc1 
Target VersionFixed in Version4.00.0+beta2/+rc1 
Summary0005692: regression: end locations wrong in camlp4 ast
DescriptionSomewhere inside the camlp4 machinery, end locations are not
propagated any more. The result is that for many nodes in the camlp4
ast the end location is identical to the start location.

Severity major, because this will very likely break otags. Because of
missing or wrong location info, otags reparses fragments of the source.
In some cases it has to take the last or second last word. This can of
course only work with correct end locations.

For example, for "exception A of int" I see for the top StExc node

  start_line 1, start_offset 0, end_line 1, end_offset 0

for "type t = int" I see for the top StTyp node

  start_line 1, start_offset 0, end_line 1, end_offset 0

and there are many more cases...
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
dim (developer)
2012-07-20 11:27

Fixed. Commits 12751 and 12752.

- Issue History
Date Modified Username Field Change
2012-07-20 10:52 Hendrik Tews New Issue
2012-07-20 11:27 dim Assigned To => dim
2012-07-20 11:27 dim Status new => resolved
2012-07-20 11:27 dim Resolution open => fixed
2012-07-20 11:27 dim Fixed in Version => 4.00.0+beta2/+rc1
2012-07-20 11:27 dim Note Added: 0007786
2015-12-11 19:07 xleroy Status resolved => closed
2016-02-08 12:49 doligez Category Camlp4 => for Camlp4 use [^]
2016-02-08 12:50 doligez Category for Camlp4 use [^] => for Camlp4 use [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker