fcl-passrc cannot handle "... in 'filename.pas'" at uses clause
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
Construction like
uses ok_auto_abstract in './ok_auto_abstract.pas';
is handled by FPC compiler, but not fcl-passrc parser:
$ fpc test_parser.lpr
$ fpc ok_unit_uses_filename.pas
$ ./test_parser ok_unit_uses_filename.pas
An unhandled exception occurred at $08093FC6 :
EParserError : Expected "," or ";" at token "in"
Attaching the testcase, for the test_parser.lpr see bugreport #16340 (closed) or the wiki: http://wiki.freepascal.org/fcl-passrc . Helper units ok_auto_abstract.pas and ok_back_comment.pas uses by the testcase are just, well, empty units ("unit xxx; interface implementation end.")
Mantis conversion info:
- Mantis ID: 16347
- OS: Debian GNU/Linux
- OS Build: (testing)
- Build: 15177 (today's SVN)
- Platform: i386
- Version: 2.5.1
- Fixed in version: 2.4.4
- Fixed in revision: 16361 (#7f3a9635)