PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

compilation failure with pgf90 13.9

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



Joined: 20 Apr 2006
Posts: 18

PostPosted: Mon Oct 21, 2013 4:32 am    Post subject: compilation failure with pgf90 13.9 Reply with quote

With 64-bit pgf90 13.9, on both Linux and OSX, the following compilation failure occurs:

Code:
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - tt (fciscvp.F90)
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - vv (fciscvp.F90)
  0 inform,   0 warnings,   2 severes, 0 fatal for fci_scvp


which appears to relate to the following line of code:

Code:
 TYPE(scvpAmplitude), DIMENSION(SIZE(p,1),ihislimit) :: tt,vv


The code compiled fine with all earlier versions of pgf90, and actually compiles with 32-bit pgf90 13.9 too, so I think it might be a bug in the 64-bit version of 13.9 compiler.

Thanks,

Andy
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Oct 21, 2013 9:03 am    Post subject: Reply with quote

Hi Andy,

Can you send PGI Customer Service (trs@pgroup.com) a reproducing example?

Thanks,
Mat
Back to top
View user's profile
p.j.knowles



Joined: 20 Apr 2006
Posts: 18

PostPosted: Tue Oct 22, 2013 1:37 am    Post subject: Reply with quote

Mat,

Thanks, done. After some experimentation it appears it's an issue with -i8 flag; we only use this on 64-bit systems so that explains why we didn't see it on 32-bit. For completeness the example is:

Code:
SUBROUTINE test(n)
 IMPLICIT NONE
 INTEGER, INTENT(in) :: n
 TYPE my_type
  CHARACTER(len=80) :: cname
 END TYPE my_type
 TYPE(my_type), DIMENSION(n)           :: p
 TYPE(my_type), DIMENSION(SIZE(p,1),5) :: t
END SUBROUTINE test


and the result of compiling it without and with -i8 flag is

Code:
> pgf90 -c test.f90
> pgf90 -c -i8 test.f90
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - t (test.f90)
  0 inform,   0 warnings,   1 severes, 0 fatal for test


Thanks,

Andy
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 22, 2013 1:34 pm    Post subject: Reply with quote

Thanks Andy. We appreciate you narrowing this down for us. I added a problem report (TPR#19633) and sent it on to engineering for investigation.

- Mat
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 445

PostPosted: Fri Jan 24, 2014 5:01 pm    Post subject: TPR 19633 is fixed in 14.1 release Reply with quote

19633 - User code gets error "Adjustable array can not have automatic bounds specifiers" with -i8

This problem is fixed in the current 14.1 release.

thanks,
dave
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