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

Internal compiler error (ICE) with a variable of default complex type with pointer attribute

FortranFan
Honored Contributor II
418 Views

Fyi for readers: here's an internal compiler error that has been submitted at the Intel Online Service Center.

   real, target :: r
   complex, pointer :: c
   c%re => r
end

Upon compilation using Intel Fortran compiler 18.0 version:

xxx>ifort /c /standard-semantics /warn:all /stand p.f90
Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.0.124 Build 20170811
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.

p.f90(1): remark #7712: This variable has not been used.   
   real, target :: r
-------------------^
p.f90(1): catastrophic error: **Internal compiler error: internal abort** Please
 report this error along with the circumstances in which it occurred in a Softwa
re Problem Report.  Note: File and line given may not be explicit cause of this
error.
compilation aborted for p.f90 (code 1)

xxx>

 

0 Kudos
2 Replies
Lorri_M_Intel
Employee
418 Views

Instead of an internal compiler error (oopsie), I would expect a compile-time error, since the real-portion of a complex pointer is not itself a pointer.

Do you have a different expectation?

                       --Lorri

 

0 Kudos
FortranFan
Honored Contributor II
418 Views

Lorri Menard (Intel) wrote:

Instead of an internal compiler error (oopsie), I would expect a compile-time error, since the real-portion of a complex pointer is not itself a pointer.

Do you have a different expectation?

                       --Lorri

Yes, Lorri - you're right.  It should be a compile-time error.

Thanks,

0 Kudos
Reply