- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I've spotted what looks like a bug in the preprocessor for long line continuation over the limit for free-form fortran. In ifc 7.0 sensible line breaks are put in to give continued lines, but 8.0 seems to go mad . (ifc 7.0 still has trouble with the preprocessor / line continuation symbol however)
Input (the define should be all on one line):
#define MACROS(dummy) write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly, not ampersands for every single character listed', dummy, 'Just to make sure it is over the limit, do it twice :', dummy, 'An extremely long line',dummy,'here come','the ampersands!'
program preprocessor
implicit none
MACROS(1)
end program preprocessor
Output :
ifc 7.0 : ifc -E gives
program preprocessor
implicit none
write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly&
&, not ampersands for every single character listed'&
, 1, 'Just to make sure it is over the limit, do it twice :', 1, 'An extremely long line',1,'here come','the ampersands!'
end program preprocessor
ifort 8.0 : ifc -E gives
program preprocessor
implicit none
write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly, not ampersands for every single character listed', 1, 'Just to make sure it is over the limit, do it twice :', 1, 'An e&
&xtremely long line'&,&1&,&'here come'&,&'the ampersands!'
end program preprocessor
Input (the define should be all on one line):
#define MACROS(dummy) write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly, not ampersands for every single character listed', dummy, 'Just to make sure it is over the limit, do it twice :', dummy, 'An extremely long line',dummy,'here come','the ampersands!'
program preprocessor
implicit none
MACROS(1)
end program preprocessor
Output :
ifc 7.0 : ifc -E gives
program preprocessor
implicit none
write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly&
&, not ampersands for every single character listed'&
, 1, 'Just to make sure it is over the limit, do it twice :', 1, 'An extremely long line',1,'here come','the ampersands!'
end program preprocessor
ifort 8.0 : ifc -E gives
program preprocessor
implicit none
write(*,*)'An extremely long line that the pre-processor should expand out successfully',' and put in continuation marks sensibly, not ampersands for every single character listed', 1, 'Just to make sure it is over the limit, do it twice :', 1, 'An e&
&xtremely long line'&,&1&,&'here come'&,&'the ampersands!'
end program preprocessor
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please report suspected bugs to Intel Premier Support.
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