Hello Harald,
the conversion of (unsigned) integers to decimal in output was designed to be efficient up to INTEGER(kind=16) and did not handle values larger than roughly (10^19 * 2^64).The attached obvious patch fixes this. Regtested on x86_64-pc-linux-gnu. OK for mainline?
OK. Thanks a lot for finding and fixing this! Best regards Thomas