[fpc-devel]Compiler runtime error when using WideString character constant
david at e.co.za
Sat Nov 8 07:40:07 CET 2003
I am using FreePascal 1.9.0[2003/11/05].
For the following code, the compiler crashes with "Runtime error 216
RR = record
RA : WideString;
Z : RR = (RA: 'B');
The compiler does not crash if the 'B' is changed to a string of more
than one character, for example 'BB'. Also, if the WideString is
changed to String, the compiler does not crash.
Also, it appears to be specific to constant record declarations,
because the following compiles fine:
Z : WideString = 'B';
So it seems to only happen with constants of single character
WideStrings as a record field in a constant record declaration.
More information about the fpc-devel