Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Undeserved(?) Syntax Error

jackosullivan1
825 Views

The following code used to compile fineprior to my "upgrading" to VS2008 (9.0.21022.8 RTM)and IVF 11.1.067, but now itgives the compilation Error 1 shown below.

[fxfortran]        write(37,*)'(sec)',(tab,'Code',tab,'('//volunit//')',       
     1   tab,'('//trim(pressunit)//'-abs)',tab,'(gm-moles)',tab     
     1    ,'Fraction',tab,'('//trim(pressunit)//'-abs)'
     1    ,tab,'('//trim(pressunit)//'-abs)',j=1,lngPL)             
[/fxfortran]

Error 1 error #5082: Syntax error, found ')' when expecting one of: :

When I change the code to the following -- using brackets in place of parentheses in the literal strings --all is fine. It compiles and links, and away we go.
[fxfortran]        write(37,*)'[sec]',(tab,'Code',tab,'['//volunit//']',        
     1   tab,'['//trim(pressunit)//'-abs]',tab,'[gm-moles]',tab      
     1    ,'Fraction',tab,'['//trim(pressunit)//'-abs]'
     1    ,tab,'['//trim(pressunit)//'-abs]',j=1,lngPL)              
[/fxfortran]

Since all of the potentially offending right parentheses were originally within single quotes to designate literal strings, this appears to be some sort of compiling error. Or have I missed some recent change of the Fortran syntax rules?

Thanks and God bless!
Jack O'Sullivan
0 Kudos
5 Replies
Steven_L_Intel1
Employee
825 Views
This is a compiler bug - I'll report it to the developers. Thanks.
0 Kudos
jackosullivan1
825 Views
Thank you, Steve.
Ironically, this is myfirst encounter with IVF in over a year. Leave it to me to bump into a bug!
Thanks again, and of course ...
God bless!
jack
0 Kudos
Steven_L_Intel1
Employee
825 Views
Jack,

Can you tell me which version you used before?
0 Kudos
Steven_L_Intel1
Employee
825 Views
Never mind - I found that it compiled ok in 11.1.060. Reported as issue DPD200162543.
0 Kudos
jackosullivan1
825 Views
Steve,
Sorry I "stepped away" from my emails and things for a bit... Glad you found what worked. I'm pretty sure I was successfully using one of the earlier 11.0's, but thanks to a crashed laptop, I can't be sure of which build.

Thanks again for all you do!
God bless!
Jack
0 Kudos
Reply