hi,
while doing a new port, came across this:
g++ -DHB_OS_UNIXWARE -I. -I../../../../../include -D_SCO_DS -Wall -W
-O3 -o expropt1.o -c ../../../expropt1.c
../../../expropt1.c: In function `struct HB_EXPR_ *
hb_compExprNewNegate(HB_EXPR_ *, _HB_COMMON *)':
../../../expropt1.c:1066: integer constant out of range
this only happens with g++. 2.95 is the only one there is, and it is
entirely possible it is a compiler error, as it has other deficiencies
it theoretically shouldn't.
the absolute minimal example that triggers the problem is:
$ cat y.c
#include <limits.h>
#include <stdio.h>
int main( void )
{
printf("%lld\n", LLONG_MAX);
return 0;
}
$ cc y.c
$ ./a.out
9223372036854775807
$ CC y.c
$ ./a.out
9223372036854775807
$ gcc y.c
$ ./a.out
9223372036854775807
$ g++ y.c
y.c: In function `int main()':
y.c:7: integer constant out of range
$
gcc version 2.95.3pl1 d - 20020710 (build) - OU8.0.1
does anyone perhaps have any idea?
thanks,
--
[-]
mkdir /nonexistent
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour