View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025410 | FPC | Compiler | public | 2013-12-08 15:41 | 2020-11-15 22:03 |
Reporter | ajax16384 | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 2.6.2 | ||||
Summary | 0025410: macros compilation error message should dump all macro call stack | ||||
Description | Compilation error message about code that uses macros shows only macro definition position. I guess fpc should dump all macro evaluation stack (all fault macro calling lines). | ||||
Steps To Reproduce | program TestMacro; {$MACRO ON} {$define SubstFoo:=RealFoo} procedure RealFoo(v: Int64); overload; begin end; procedure RealFoo(v: Integer); overload; begin end; var u: UInt64; i: Integer; begin SubstFoo(u); // 14 line SubstFoo(i); RealFoo(u); // 16 line RealFoo(i); end. fpc error output: TestMacro.dpr(3,8) Error: Can't determine which overloaded function to call TestMacro.dpr(16,3) Error: Can't determine which overloaded function to call TestMacro.dpr(18,4) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted "TestMacro.dpr(3,8)" points only to macro definition line, but not to real macro calling location. Expected error message should looks like: TestMacro.dpr(14,3); TestMacro.dpr(3,8) Error: Can't determine which overloaded function to call | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | |||||
Attached Files |
|