You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7755 Reporter: kosik Status: acknowledged (set by @xavierleroy on 2018-05-21T17:00:20Z) Resolution: open Priority: low Severity: minor Version: 4.06.1 Category: lexing and parsing Monitored by:@nojb@gasche
Bug description
See "Steps To Reproduce".
Steps to reproduce
After executing the following comments:
ocamlc -g -o main main.ml
OCAMLRUNPARAM=b ./main
I see:
Fatal error: exception Main.E
Raised at file "generated.ml", line 4002, characters 4-47
Called from file "generated.ml", line 13002, characters 0-6
I was expecting to see:
Raised at file "original.mly", line 8, characters 13-14
Additional information
When I delete the following line from the attached "mail.ml" file:
let _1 = () in
then "ocamlc" behaves in the expected way. I.e. I see:
Fatal error: exception Main.E
Raised at file "original.mly", line 8, characters 13-14
Called from file "generated.ml", line 13002, characters 0-6
I can reproduce the problem with 4.06 but not with the current trunk. There was some changes recently in the way # line directives are handled, but I'm surprised they make a difference here.
Original bug ID: 7755
Reporter: kosik
Status: acknowledged (set by @xavierleroy on 2018-05-21T17:00:20Z)
Resolution: open
Priority: low
Severity: minor
Version: 4.06.1
Category: lexing and parsing
Monitored by: @nojb @gasche
Bug description
See "Steps To Reproduce".
Steps to reproduce
After executing the following comments:
ocamlc -g -o main main.ml
OCAMLRUNPARAM=b ./main
I see:
Fatal error: exception Main.E
Raised at file "generated.ml", line 4002, characters 4-47
Called from file "generated.ml", line 13002, characters 0-6
I was expecting to see:
Raised at file "original.mly", line 8, characters 13-14
Additional information
When I delete the following line from the attached "mail.ml" file:
let _1 = () in
then "ocamlc" behaves in the expected way. I.e. I see:
Fatal error: exception Main.E
Raised at file "original.mly", line 8, characters 13-14
Called from file "generated.ml", line 13002, characters 0-6
File attachments
The text was updated successfully, but these errors were encountered: