Toby Ewing wrote:
I compiled the above code, and got the same error: frank.pas: In main program: frank.pas:12: reference expected, value given frank.pas:12: reference expected, value given frank.pas:12: tree check: expected class 't', have 'x' (error_mark) in require_complete_type, at p/typecheck.c:63 Please submit a full bug report, with preprocessed source if appropriate. See URL:http://www.gnu-pascal.de/todo.html for instructions.
If more recent versions of gpc have fixed this, please tell me! I'm currently running version 20030507, based on gcc-3.2.2
Actually I can reproduce the problem now (I did something wrong the other day). Here's a fix. (But it's not serious anyway. ;-)
Frank