Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifc 8.0 pre-processor bug?

Intel_C_Intel
Employee
501 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
501 Views
Please report suspected bugs to Intel Premier Support.
0 Kudos
Reply