- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There seems to be a bug in the precompiler of Intel Fortran 11.1. Minimal example (the comment is crucial):
program deftest
implicit none
#define dshe(n1) dshe_(n1)
! dshe: this is dshe(j1)
#ifdef VCC
#endif
end program deftest
This yields:
> ifort -fpp -DVCC deftest.f90
deftest.f90(9): #error: '#ifdef' argument starts with wrong symbol.
> ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20090630 Package ID: l_cprof_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
program deftest
implicit none
#define dshe(n1) dshe_(n1)
! dshe: this is dshe(j1)
#ifdef VCC
#endif
end program deftest
This yields:
> ifort -fpp -DVCC deftest.f90
deftest.f90(9): #error: '#ifdef' argument starts with wrong symbol.
> ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20090630 Package ID: l_cprof_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue involves FPP attempting to extend the macro in the comment but failing to do so correctly. There is a command-line option work-around that avoids the error and having to remove or modifythe comment.
Compile with: -Qoption,fpp,-macro=no_com
I will post again about a permanent fix when available.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reporting this. Its reproducible with our upcoming 11.1 update too. I reported to Development and will post updates as I learn it.
(Internal tracking id: DPD200139785)
(Resolution Update on 11/10/2009): This defect is fixed in the Intel Fortran Compiler Professional Edition 11.1 Update 3, (11.1.059 - Linux).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue involves FPP attempting to extend the macro in the comment but failing to do so correctly. There is a command-line option work-around that avoids the error and having to remove or modifythe comment.
Compile with: -Qoption,fpp,-macro=no_com
I will post again about a permanent fix when available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot, this works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This defect (DPD200139785) is fixed in the Intel Fortran Compiler Professional Edition 11.1 Update 3, (11.1.059 - Linux).

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page