- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: F90 compiler bug
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 03:43 AM
05-28-2002 03:43 AM
F90 compiler bug
I want to allocate and initialise in a subroutine a character??string array
defined as a dynamic array (pointer) in a module.
It works on Windows Digital FORTRAN, TRU64, IRIX64, Linux (IFC) and AIX FORTRAN,
but doesn't work on HP-UX FORTAN90.
If someone has an idea (enclose a short program as example)
I have submitted this program to comp.lang.fortran news and people have the
same conclusion I have
Thanks
Stephane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 05:54 AM
05-28-2002 05:54 AM
Re: F90 compiler bug
Cannot open your added file
However
1)What OS revision
2)Compiler version
3)Last Fortran Patch loaded
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:22 AM
05-28-2002 06:22 AM
Re: F90 compiler bug
Here is the result of command
what /opt:fortran90/bin/f90
/opt/fortran90/bin/f90:
HP-UX f90 19990722 (181103) B3907DB/B3909DB B.10.20.16
HP F90 v2.3
/usr/lib/libc: $Revision: 76.3 $
and the program
!*********************************************
subroutine allocation(tab,kkk)
!*********************************************
implicit none
character(len=*), pointer, dimension(:) :: tab
integer :: kkk,ok
!---------------------------------------------
ok=-1
print*,'allocation ?'
allocate (tab(kkk), stat=ok)
print*,'allocation reussie : ok=',ok
print*,'initialisation ?'
TAB(:) = 'ok'
print*,'initialisation reussie'
!---------------------------------------------
end subroutine allocation
!*********************************************
!*********************************************
module comlec
!*********************************************
integer, parameter :: L80=2
character(len=L80), pointer, dimension(:), save :: bdini
end module comlec
!*********************************************
!=============================================
program essai
!=============================================
use comlec
implicit none
integer, parameter :: n=4
!---------------------------------------------
interface
subroutine allocation(tab,kkk)
implicit none
character(len=*), pointer, dimension(:) :: tab
integer :: kkk
end subroutine allocation
end interface
!---------------------------------------------
call allocation(bdini,n)
print*,bdini
!---------------------------------------------
end program essai
!=============================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:51 AM
05-28-2002 06:51 AM
Re: F90 compiler bug
1)You should get the latest 10.20 patch
PHSS_20205
2)You seem to be on 10.20 which is approaching end of support within a year so there is little chance of major compiler changes now
So if you have a valid problem then you would be best to upgrade the OS and then log a
response centre call against the compiler.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 09:17 AM
05-28-2002 09:17 AM
Re: F90 compiler bug
Hi,
The sample code also fails with the latest
f90 compiler on hp-ux 11.00
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 10:46 PM
05-29-2002 10:46 PM
Re: F90 compiler bug
I have solved the problem writting
NULLIFY(BDINI) before CALL ALLOCATION(BDINI,N).
It is still not clear to me why it doesn't work without because
allocation was done successfully, SHAPE(BDINI) was ok and LEN(BDINI)
also.
Stephane