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

warning for & in quotes

Scott_L_
New Contributor I
327 Views

intel fortran 17.1   Compiling with Intel(R) Visual Fortran Compiler 17.0.1.143 [IA-32]...

gives a warning for & inside single quotes:

as in: if(string(i:i1).eq.'&&') then

G:\HSE_house\acsys\v6.2\src\solutions\acsys\acsyslib.f90(11276): warning #5152: Invalid use of '&'. Not followed by comment or end of line

G:\HSE_house\acsys\v6.2\src\solutions\acsys\acsyslib.f90(12236): warning #5152: Invalid use of '&'. Not followed by comment or end of line

thanks,

scott

 

 

0 Kudos
2 Replies
andrew_4619
Honored Contributor II
327 Views

Yes that failes for me too on 17/1, it compiles OK on 16.0.3.207 [IA-32] so a regression bug in 17 I think.

0 Kudos
Kevin_D_Intel
Employee
327 Views

Thank you for reporting this. I escalated it to Development. The warning is not issued with our newest development compiler so a fix may be in the works. If it becomes a real nuisance it is silence-able with:  /Qdiag-disable:5152

(Internal tracking id: DPD200416829)

0 Kudos
Reply