fcl-passrc wrong error position
Original Reporter info from Mantis: zamtmn @zamtmn
-
Reporter name: Andrey Zubarev
Original Reporter info from Mantis: zamtmn @zamtmn
- Reporter name: Andrey Zubarev
Description:
Sometimes, when using macros, I see the wrong position of the error. it shows the line number from the beginning of the macro. Not the line number with the actual error. I attached the file, it's big and pointless, it is interesting that shows the wrong error string.
Fragment of parse log:
....
Reading line 2200.
Reading line 2300.
Reading line 2400.
E:\zcad\other\pudgb\passrcerrors.pas(2) : IFDEF ONEBASED found, rejecting.
E:\zcad\other\pudgb\passrcerrors.pas(4) : IFDEF NONPOD found, rejecting.
E:\zcad\other\pudgb\passrcerrors.pas(22) : IF SIZEOF(X) = SIZEOF(BYTE) found, ignoring (rejected).
Parser error: "User defined error: """ line:26 column:19 file:E:\zcad\other\pudgb\passrcerrors.pas
....
error in macros on line 2309, macros insert in line 2402, but shown line 26
Mantis conversion info:
- Mantis ID: 31725