GPC BUG: Problems in subrange definition if exponentiation operator used
Hello, I found the following bug(s) in the Beta version of GPC. Best regards, Peter Dietrich -------------------- GPC-Version (gpc -v): Reading specs from C:\usr\local\lib\gcc-lib\i386-mingw32\2.8.1\specs gpc version 19990118, based on gcc-2.8.1 System-Version: Windows NT 4.0 on i386 Problem description: The exponentiation operator cannot be used in expressions for lower/upper bound of subrange definitions. The compiler issues two different error messages: If a unary minus is present, the error message is "parse error before **", otherwise it is "subrange bounds are not of the same type". There is also a lot "extra semicolon" messages for lines following the "parse error". The compiler is happy, if I compute the result of the expression myself, and substitute the computed result. The syntax is ok for the Digital VMS Pascal compiler. program test (output); type utriple = 0..2**24-1; triple = -2**23..2**23-1; begin end. F:\PROJECTS\ISIDATA\isidef>gpc -c test6.pas test6.pas:4: subrange bounds are not of the same type test6.pas:5: parse error before `**' test6.pas:5: extra semicolon
participants (1)
-
pdietrich@synstar.de