--On Tuesday, August 24, 2004 2:03 PM -0400 Aleksandar Donev
<[log in to unmask]> wrote:
> Error: /HPC/Libraries/PAPI/papi/include/f90papi.h, line 26: Integer
> literal 2147483648 too large for default KIND
This isn't new. It goes back to the earliest days of Fortran. If
you check the syntax rules, you will find that your -2147483648
is parsed as the minus sign followed by a literal constant.
The literal constant isn't valid (out of range); thus the problem.
Some compilers figure out what you meant anyway, but you can't
portably count on it.
I personally think it would be nice to redo the parsing rules so
that the -2147483648 could be parsed directly as a literal
constant. Alas, that is way down low in the parsing rules in
a way that makes it tricky to change without messing everything
up. I suspect it is possible, but it isn't trivial (anyway, to
me).
Try things like -21474383647-1. Stupid-looking, but it should work.
(I don't have 2**31 memorized and didn't check your exact number, but I
assume it is right).
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|