Bug 18003 - Parser failure in printing of array intrisics (lbound)
Summary: Parser failure in printing of array intrisics (lbound)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: unknown
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: FIXME, ice-on-valid-code, rejects-valid
Depends on:
Blocks: 25669 26834
  Show dependency treegraph
 
Reported: 2004-10-14 21:42 UTC by Craig Rasmussen
Modified: 2006-04-23 05:44 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-01-27 20:46:57


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Rasmussen 2004-10-14 21:42:26 UTC
The following program fails:

----------------------
subroutine io_bug()
  integer :: a(10)
  print *, lbound(a)
end subroutine io_bug
----------------------

Command:
   gfortran -c gfortran-bug.f90

Error msg:

gfortran-bug.f90: In function `io_bug':
gfortran-bug.f90:3: fatal error: gfc_todo: Not Implemented: Unable to determine rank of expression
compilation terminated.

Version:

GNU Fortran 95 (GCC 3.5.0 20040714 (experimental))

Platform:

Mac OS X
Comment 1 Drea Pinski 2004-10-14 21:46:03 UTC
Confirmed.
Comment 2 Drea Pinski 2005-10-24 20:08:05 UTC
The problem is that we don't record the rank of the lbound for some reason, looking into it little more.
Comment 3 Paul Thomas 2006-04-23 05:44:11 UTC
Fixed on trunk and 4.1

Paul