When compiling with ifort before version 17.0.1, the default behaviour is for the compiler not to use the Fortran rules for automatic allocation on intrinsic assignment.
You will need to use an option like -assume realloc-lhs
.
More Related Contents:
- Reading writing fortran direct access unformatted files with different compilers
- Where to put `implicit none` in Fortran
- Why is this a function declared inside the module and then used somewhere else in the same module not seen by the linker?
- gfortran does not allow character arrays with varying component lengths
- Error: Nonnegative width required in format string at (1)
- Fortran array cannot be returned in function: not a DUMMY variable
- Fortran 90 kind parameter
- Unexpected “padding” in a Fortran unformatted file
- Fortran assignment on declaration and SAVE attribute gotcha
- MPI_Recv overwrites parts of memory it should not access
- Fortran OpenMP program shows no speedup of CPU_TIME()
- Why are my random numbers always the same?
- What are the ways to pass a set of variable values through the subroutine to a function without common block?
- What flags do you set for your GFORTRAN debugger/compiler to catch faulty code?
- how to write wrapper for ‘allocate’
- How do I do big integers in Fortran?
- What does “real*8” mean?
- Line truncated, Syntax error in argument list
- Fortran IF statement with numbers/labels rather than another statement
- Using a deferred-length character string to read user input
- Providing an argument that has not the TARGET attribute to a procedure with a dummy argument that has the TARGET attribute
- Strange label usage for an IF condition in a DO loop [duplicate]
- Mac OS X R error “ld: warning: directory not found for option”
- Difference between intent(out) and intent(inout)
- How to override a structure constructor in fortran
- Using do loop in a Fortran 90 program to read different number of lines for n frames?
- Having parameter (constant) variable with NaN value in Fortran
- Are Fortran control characters (carriage control) still implemented in compilers?
- How to pass subroutine names as arguments in Fortran?
- Confusing double precision real in Fortran