Hi AliG,
It looks like this is a known issue (TPR #34694 "Using implied-shape parameter arrays with nested modules give ICE “module:new_dtype, dt nfd”) that should be fixed in our upcoming 24.5 release. The caveat being that while rare, the fix could expose other issues so may be backed out before the final release. In other words, t’s likely the fix will be there, I just can’t guarantee it.
% nvfortran -c test.F90 -V24.3
NVFORTRAN-F-0000-Internal compiler error. module:new_dtype, dt nfd 63 (test.F90: 12)
NVFORTRAN/x86-64 Linux 24.3-0: compilation aborted
% nvfortran -c test.F90 -V24.5
%
-Mat