PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Array references with wrong number of indices?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Russell



Joined: 20 Aug 2004
Posts: 4

PostPosted: Sun Sep 12, 2004 7:40 pm    Post subject: Array references with wrong number of indices? Reply with quote

I have had several problems with F90 programs where I refer to an array
using the wrong number of indices. For example, a(1,2) instead of
a(1,2,3). Is the compiler supposed to catch this not not?

Thanks.
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Mon Sep 13, 2004 12:41 pm    Post subject: Part of an Extension, use "-Mstandard" Reply with quote

This is an extension which will implicitly use the first element of the missing index. This will error if you use the "-Mstandard" flag.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group