PGF90 crashes compiling a module with over 50 function params - way to override?

I have a situation, where PGF90 crashes whenever a total number of function parameters in the code exceeds 50. Is there a flag to bump up this number? Below is a minimal test case (compile with pgf90 1.f). Removing a48 or a51 results in a successful compilation.

test.f (328 Bytes)

My version: pgf90 19.10-0 LLVM 64-bit target on x86-64 Linux -tp skylak

The error:

pgf90 1.f

pgf90-Fatal-/usr/local/pgi/linux86-64-llvm/19.10/bin/pgf902-llvm TERMINATED by signal 11

Arguments to /usr/local/pgi/linux86-64-llvm/19.10/bin/pgf902-llvm

/usr/local/pgi/linux86-64-llvm/19.10/bin/pgf902-llvm /tmp/pgf90XLl5t6niBBz8.ilm -fn 1.f -opt 1 -terse 1 -inform warn -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -x 59 4 -tp skylake -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 8 0x40000000 -x 54 0x10 -x 70 0x40000000 -x 249 70 -x 68 0x20 -x 70 0x40000000 -x 8 0x40000000 -x 164 0x800000 -x 124 1 -x 39 4 -x 68 0x1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -cmdline '+pgf90 1.f ’ -stbfile /tmp/pgf905Ll5RmDMNth-.stb -asm /tmp/pgf90zLl5leqjnIGF.ll

Thanks maksym.petrenko, I have reported the issue to engineering under TPR #31627.

Though the error doesn’t appear to be an issue strictly due to the number of arguments, but rather the number of arguments plus the use of “entry”. Removing entry works around the issue.

In any event, you should consider refactoring the code to remove “entry” anyways given it is obsolete as of the F2008 standard and considered incompatible with the best principles of structured programming.

-Mat

Thank you, Mat. Indeed, removing entry does work. But so does reducing the number of parameters on the subroutine. We are trying to resurrect an old science code that we got from somebody else. Will see if it would be practical to refactor.