Allocatable deferred-length character requires "assume realloc_lhs"


Reference Number : DPD200137145


Version : 11.1


Operating System : All


Problem Description : A Fortran 2003 language feature newly supported by the 11.1 compiler is allocatable, deferred-length character variables. The standard specifies that when such a variable is assigned to, it is automatically reallocated, if necessary, to the correct size.  Due to an implementation error, use of this feature requires compilation with the /assume:realloc_lhs (Windows) or -assume realloc_lhs (Linux and Mac OS) options.

For example:

character(:), allocatable :: string
string = 'Hello' // ' World!'
print *, string
end
The variable "string" should become allocated with length 12 and the contents "Hello World!", but this does not happen unless "assume realloc_lhs" is specified.


Resolution Status : This problem will be corrected in a product update.  As a workaround, specify the "assume realloc_lhs" option when building applications that use this feature.



[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, completeness or utility of any information on this site. Intel may make changes to the information or the site at any time without notice. Intel makes no commitment to update the information at this site. ALL INFORMATION PROVIDED ON THIS WEBSITE IS PROVIDED "as is" without any express, implied, or statutory warranty of any kind including but not limited to warranties of merchantability, non-infringement of intellectual property, or fitness for any particular purpose. Independent companies manufacture the third-party products that are mentioned on this site. Intel is not responsible for the quality or performance of third-party products and makes no representation or warranty regarding such products. The third-party supplier remains solely responsible for the design, manufacture, sale and functionality of its products. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. *Other names and brands may be claimed as the property of others.]
For more complete information about compiler optimizations, see our Optimization Notice.