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

Internal compiler error

Jacob_Williams
New Contributor III
476 Views
Just wanted to report an internal compiler error. It happens when compiling the following code (which has an invalid sequence of if statements). The error is "catastrophic error: Internal Compiler Error: Unexpected statement", but it doesn't indicate the line number. I'm using Visual Fortran Compiler XE 12.1.5.344 with VS 2010 Shell. Maybe not a big deal, but I had something like this in a large file, and it took me a while to track down the problem, since it wasn't telling me the line number.

[fortran]program test implicit none logical :: a=.true. logical :: b=.false. if(a) if(b) write(*,*) 'hello' end program test[/fortran]
0 Kudos
2 Replies
Steven_L_Intel1
Employee
476 Views
I know I've seen this before but I am having trouble locating the error report. Regardless, it is already fixed for a release later this year.
0 Kudos
Udit_P_Intel
Employee
476 Views
Yes, this was recently fixed. I believe the related thread is here .

Best!
-Udit
0 Kudos
Reply