Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005719OCamlOCaml tools (ocaml{lex,yacc,dep,browser,debug})public2012-08-06 11:272012-08-06 16:20
Reporterprevosto 
Assigned Todoligez 
PrioritylowSeveritytweakReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.00.0 
Target VersionFixed in Version4.00.1+dev 
Summary0005719: ocamlyacc generates code that is not warning 33-compliant
Descriptionocamlyacc systematically open Parsing in the generated file. However, it also uses fully qualified names in the generated code, so that open Parsing is flagged as useless by warning 33, unless user actions use functions from the Parsing module without prefix.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007901)
doligez (administrator)
2012-08-06 16:20

This is only true if you override the default "parse_error" function, and it's a bit tricky to resolve without breaking any existing code and without triggering warning 5. Here's what I've done: add "let _ = parse_error;;" right after "open Parsing;;" to silence the warning without removing the open.

Fixed in 4.00 and trunk (r 12834 and r 12835).

- Issue History
Date Modified Username Field Change
2012-08-06 11:27 prevosto New Issue
2012-08-06 14:16 doligez Assigned To => doligez
2012-08-06 14:16 doligez Status new => assigned
2012-08-06 16:20 doligez Note Added: 0007901
2012-08-06 16:20 doligez Status assigned => closed
2012-08-06 16:20 doligez Resolution open => fixed
2012-08-06 16:20 doligez Fixed in Version => 4.00.1+dev
2013-08-19 15:58 doligez Category OCaml tools (ocaml{lex,yacc,dep,browser}) => OCaml tools (ocaml{lex,yacc,dep,browser,debug})


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker