compiler error in associate statement

compiler error in associate statement

I get an internal compiler error with the following code. 

program main
 implicit none
 integer,dimension(3) :: a
 integer,dimension(4,4) :: b
a=(/1,2,4/)
 associate(p=>b(:,a))
 end associate
end program

On the other hand, I get no compilation errors with this other code:

program main
implicit none
integer,dimension(4,4) :: b
associate(p=>b(:,1:2:4))
end associate
end program

What am I missing here?*

* compiled with ifort version 13.0.1 under linux mint 14

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Steve Lionel (Intel)

An internal compiler error is always a compiler bug. Thanks for the short example - I will send this to the developers.

The issue ID is DPD200240855. You probably already know this, but in an ASSOCIATE constructor when the selector is an array with a vector subscript, you cannot assign to or otherwise "define" the associate-name. Your example doesn't do this (indeed it doesn't do anything inside the construct), but I figured I'd mention it anyway.

Steve
Bild des Benutzers Steve Lionel (Intel)

This has been fixed for a release later this year.

Steve

Melden Sie sich an, um einen Kommentar zu hinterlassen.