fcl-passrc cannot handle {$include 'filename in quotes.inc'}
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
When {$including the file, you can specify a filename in single quotes (that is, apostrophes). FPC compiler handles this Ok, fcl-passrc fails (it searches for a filename with apostrophes included, it seems):
$ fpc test_parser.lpr
$ fpc ok_include_quoted.pas
$ ./test_parser ok_include_quoted.pas
TPascalScanner.Error
An unhandled exception occurred at $080942DD :
EParserError : Could not find include file ''ok_include_quoted.inc''
Attaching the testcase, for the test_parser.lpr see bugreport #16340 (closed) or the wiki: http://wiki.freepascal.org/fcl-passrc . The file ok_include_quoted.inc is just an empty file.
Mantis conversion info:
- Mantis ID: 16344
- 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: 16365 (#605d9b5e)