Marten Jan de Ruiter wrote:
I am trying to port a large program written on a SUN to linux using gpc. So far it goes well, but I run into an error. type T_PtrStr_t = ^TZ_Str_t; compiles perfectly, while type T_PtrStr_t = ^T_Str_t; generates a warning: warning: identifiers should not start with an underscore parse error before `;'
I have added the transcription of the session using an as small as possible program. For clarity, the difference between the two source files is the removal of the three Z's: two in the type declaration and one in the var declaration.
Can someone point out what is wrong with the compilation of the second program?
This was a GPC bug that has been fixed meanwhile. According to the `Fixed Bugs' section in the To-Do list http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html: 19990618: the construct @samp{^f_oo} is misinterpreted as a Borland-style char constant (fjf350.pas)
So, any version after this date (e.g., alpha 19990813 or the soon to come next release) will not suffer from this bug.
Frank