View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038342 | FPC | Compiler | public | 2021-01-10 19:59 | 2021-01-11 14:24 |
Reporter | Bart Broersma | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | i386 | OS | Windows | ||
Product Version | 3.3.1 | ||||
Summary | 0038342: Error message for error 3339 ("global generic references static") does not point to the offending line in question | ||||
Description | The errormessage "Error: (3339) Generic template in interface section references symbol in implementation section always" point to the "end;" of the generic method that calls the "forbidden" symbol, not to the offending line in that method. This is a bit confusing (less so now, since the errormessage was made more clear in r48125) if you have no clue what the actual error is that you made. | ||||
Steps To Reproduce | Compile the attached simple program with "fpc -vq ermsg.lpr" and you get: "ugenerr.pp(76,4) Error: (3339) Generic template in interface section references symbol in implementation section" The actual offending code is in line 27 of that unit, ans on my laptop it is not in my view if I scroll to line 76 (or the Lazarus IDE does that automaticaaly for me). | ||||
Additional Information | Discussed with Sven on the fpc-devel list. Priority low, since the error message is now more self explanatory. | ||||
Tags | generics | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-10 19:59 | Bart Broersma | New Issue | |
2021-01-10 19:59 | Bart Broersma | File Added: msg3339.zip | |
2021-01-11 14:22 | Sven Barth | Tag Attached: generics | |
2021-01-11 14:24 | Sven Barth | Summary | Error message for error 3339 does not point to the offending line in question => Error message for error 3339 ("global generic references static") does not point to the offending line in question |
2021-01-11 14:24 | Sven Barth | FPCTarget | => - |