Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87042 - g77 confused on intrinsics
Summary: g77 confused on intrinsics
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-28 15:52 UTC by Fred Krogh
Modified: 2005-12-11 18:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Krogh 2005-03-28 15:52:36 UTC
The subroutine PACK is being interprete incorrectly.

Reproducible: Always
Steps to Reproduce:
Compile this:

      integer I
      common /com/ I
      call PACK
      print '(''I ='', I3)', I
      stop
      end
      subroutine PACK
      integer I
      common /com/ I
      I = 17
      return
      end

Actual Results:  
bash-2.05b$ g77 -o test test.f
test.f: In program `MAIN__':
test.f:3: warning:
         call PACK
              ^
Reference to unimplemented intrinsic `PACK' at (^) (assumed EXTERNAL)
bash-2.05b$ ./test
I = 17


Expected Results:  
There should have been no diagnostic.  (Except for writing a stupid program
perhaps!)  This program ran correctly.  A more complicate program would not
generate an executable until PACK was changed to a different name.
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-12-11 18:42:07 UTC
I would take this upstream, it compiles and runs fine.