PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

bug - constant data cannot be declared in a host subprogram

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Feb 11, 2010 10:03 am    Post subject: bug - constant data cannot be declared in a host subprogram Reply with quote

The documents written that constant data can be used in declaration statements.
However, I only be able to define it in the module's area before the CONTAINS statement. Is this the bug?

Code:
MODULE themodule
   real, constant :: var1  ! this is okay
CONTAINS
   subroutine dosomething()
      real, constant :: var2 ! this is error
   end subroutine dosomething
END MODULE

Tuan
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 11, 2010 5:52 pm    Post subject: Reply with quote

Hi Tuan,

Most likely, but I'll let our engineers investigate. I saw that you had sent this to PGI Customer Service as well and that they have opened TPR#16605.

Thanks,
Mat
Back to top
View user's profile
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Feb 11, 2010 6:02 pm    Post subject: Reply with quote

mkcolg wrote:
Hi Tuan,

Most likely, but I'll let our engineers investigate. I saw that you had sent this to PGI Customer Service as well and that they have opened TPR#16605.

Thanks,
Mat


Thanks Mat. Sorry for duplicating. I didn't received any feedback from PGI Customer service, so I thought I can reach you faster via the forum.

Tuan.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming 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