Florian Klämpfl via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am So., 8. Nov. 2020, 22:18:
> Am 07.11.2020 um 23:00 schrieb Bart via fpc-devel: > > Hi, > > > > Type > > SubRange = Chr(1)..Chr(2); > > begin > > end. > > > > This compiles in TP 6.0 and Delphi 7.0, but fpc doesn't. > > > > Free Pascal Compiler version 3.3.1 [2020/09/26] for i386 > > Copyright (c) 1993-2020 by Florian Klaempfl and others > > Target OS: Win32 for i386 > > Compiling test.pas > > test.pas(2,14) Error: Identifier not found "Chr" > > test.pas(2,28) Error: Error in type definition > > test.pas(5) Fatal: There were 2 errors compiling module, stopping > > Fatal: Compilation aborted > > > > Is this a bug? > > Yes, it should work. It got broken somewhere during some generic work (at > least I think so). Sven, can you please have a > look? > I don't know if it's related to generics that this does not work, but at least with my changes in r47353 it now behaves consistent with e.g. Ord(). Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel