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

Have ICE with small/simple program

lklawrie
Beginner
882 Views
I have a Internal Compiler Error with a small simple program. I have worked around it but though you might want it for the developers. Include it here or submit it as a ticket?
0 Kudos
9 Replies
Steven_L_Intel1
Employee
882 Views
Here works - up to you.
0 Kudos
lklawrie
Beginner
882 Views
Here you go. Was a bit of a surprise to have an ICE.
0 Kudos
Steven_L_Intel1
Employee
882 Views
How very amusing. It has to do with the structure constructor you use to initialize alltimeweather - it is missing a value corresponding to the array component dayrain at the end. This should be ok, but is giving the compiler heartburn. Just stick in a 0.0D0 as the corresponding value and it will be happy. I will let the developers know.
0 Kudos
lklawrie
Beginner
882 Views
Figured that out. Actually changed that small array to be up with the other part of the structure -- it was easier than trying to do anything with the alltimeweather init.

0 Kudos
Steven_L_Intel1
Employee
882 Views
Issue ID is DPD200177511.

Turns out that the real issue is that when you declared the dayrain component you supplied a scalar as the initial value. If you made that an array, it would be happy too.
0 Kudos
lklawrie
Beginner
882 Views
Interesting. It's happy with it in the structure that way.

See attached.

0 Kudos
Steven_L_Intel1
Employee
882 Views
It's not the type declaration that triggers the problem, it's a structure constructor that omits a value for an array component initialized with a scalar. Your new code doesn't do that.
0 Kudos
lklawrie
Beginner
882 Views
no problemo.

thanks for the help.
0 Kudos
Steven_L_Intel1
Employee
882 Views
The problem reported has been fixed for a future product release.
0 Kudos
Reply