Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III

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

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
Highlighted

Instead of an internal

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
Highlighted
Valued Contributor III

Quote:Lorri Menard (Intel)

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