<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I'm using 3.0.4 (win32), could any one try it on a later version of the compiler?<div><br></div><div>The code i'm compiling looks like this:</div><div>--------------</div><div>{$mode delphi}</div><div><br></div><div>type</div><div>  Ttest = class(TObject)</div><div>  public </div><div>    Value: string;</div><div>  end;</div><div><br></div><div>function Custom: extended;</div><div>begin</div><div>  Result := 0;</div><div>end;</div><div><br></div><div>begin</div><div>  // writeln( TTest(Custom).Value );</div><div>  writeln( TTest(Exp).value);</div><div>end.</div><div>--------------</div><div>It gives the linking error:<br></div><div><div>sample.pas(17,1) Error: Undefined symbol: SYSTEM_::=::\_EXP$EXTENDED::=::\EXTENDED</div><div>sample.pas(17,1) Fatal: There were 1 errors compiling module, stopping</div></div><div><br></div><div>If one un-comments  the line with invalid Custom() cast, they would get a compiling error instead:</div><div><div>Compiling sample.pas</div><div>sample.pas(15,12) Error: Illegal type conversion: "Extended" to "Ttest"</div></div><div>(which is expected).</div><div><br></div><div><div>Is the issue known? worth bug reporting?</div></div><div>(clearly a compiler error should be thrown, rather than a linker error)</div><div><br></div><div>The issue I actually ran into is with a bigger project:</div><div>Error: Undefined symbol: SYSTEM_::=::\_EXP$EXTENDED::=::\EXTENDED </div><div>doesn't indicate the source code or line numbers.<br></div><div>So catching the problem might be tricky.</div><div><br></div><div>thanks,</div><div>Dmitry</div></div></div></div></div></div>