| May 16, 2009 10:00 PM PDT | |
Reference Number : DPD200111543
Version : 11.0
Operating System : All
Problem Description : The compiler gives a syntax error for an array constructor of the form:
where parameter-name is a PARAMETER constant that has the same name as a datatype keyword (BYTE, INTEGER, REAL, COMPLEX, etc.) For example:
example.f90(3): error #5082: Syntax error, found ')' when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
IA = (/BYTE/)
------------^
Resolution Status : This problem is fixed in the January 2009 product update. A workaround is to use the Fortran 2003 array constructor syntax:
instead.
[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.]
Version : 11.0
Operating System : All
Problem Description : The compiler gives a syntax error for an array constructor of the form:
(/parameter-name/)where parameter-name is a PARAMETER constant that has the same name as a datatype keyword (BYTE, INTEGER, REAL, COMPLEX, etc.) For example:
INTEGER, PARAMETER :: BYTE = 123When compiled, this gives an error such as:
INTEGER IA(1)
IA = (/BYTE/)
END
example.f90(3): error #5082: Syntax error, found ')' when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
IA = (/BYTE/)
------------^
Resolution Status : This problem is fixed in the January 2009 product update. A workaround is to use the Fortran 2003 array constructor syntax:
[parameter-name]instead.
[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.]
Do you need more help?
This article applies to: Intel® Fortran Compiler for Linux* Knowledge Base, Intel® Fortran Compiler for Mac OS X* Knowledge Base, Intel® Visual Fortran Compiler for Windows* Knowledge Base
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (2) 
| January 28, 2009 7:34 AM PST
Steve Lionel (Intel)
| The fix for this is targeted for the next 11.0 update, which should be in the next week or two. You could drop back to 10.1 in the meantime if necessary. |
Trackbacks (0)
Leave a comment 
To obtain technical support, please go to Software Support.


acarheden
35