Exercise: Allocation Trap
Create a Fortran 2003 program to perform assignment to an allocatable array. The program should loop over increasingly large source arrays trapping the allocation of the source array until the target array allocation fails. The start and increment of the loop should be provided as arguments to the program.
Bonus points
Use IOMSG to inform the user of the details of any operational failures.
Solutions: Fortran 2003.