public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30887]  New: %VAL construct fails on 64 bit
@ 2007-02-20 17:22 p dot w dot draper at durham dot ac dot uk
  2007-02-20 17:29 ` [Bug fortran/30887] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: p dot w dot draper at durham dot ac dot uk @ 2007-02-20 17:22 UTC (permalink / raw)
  To: gcc-bugs

The %VAL construct doesn't accept INTEGER types with a size
greater than the default kind. This is essential for supporting
64 bit architectures where an address cannot be stored in 
an integer with the default kind. Consider the simple module:

      SUBROUTINE VALTEST2()
      INTEGER*8 P
      P = 0
      CALL DOIT( %VAL( P ) )
      END

That fails with error report:

> gfortran -c valtest2.f 
valtest2.f:6.22:

      CALL DOIT( %VAL( P ) )                                            
                     1
Error: Kind of by-value argument at (1) is larger than default kind

Increasing the size of the default integer kind would resolve this
problem, but that would have secondary issues (which are not
acceptable in my code, the default integer maps to a defined-size
storage type).


-- 
           Summary: %VAL construct fails on 64 bit
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: p dot w dot draper at durham dot ac dot uk
  GCC host triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30887


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-02-28 18:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20 17:22 [Bug fortran/30887] New: %VAL construct fails on 64 bit p dot w dot draper at durham dot ac dot uk
2007-02-20 17:29 ` [Bug fortran/30887] " pinskia at gcc dot gnu dot org
2007-02-20 17:33 ` [Bug fortran/30887] %VAL only accepts default-kind integer/real/complex burnus at gcc dot gnu dot org
2007-02-21  5:17 ` paulthomas2 at wanadoo dot fr
2007-02-22 18:52 ` sdirkse at gams dot com
2007-02-22 19:24 ` kargl at gcc dot gnu dot org
2007-02-22 19:51 ` burnus at gcc dot gnu dot org
2007-02-22 21:10 ` patchapp at dberlin dot org
2007-02-22 21:35 ` sdirkse at gams dot com
2007-02-23 15:44 ` p dot w dot draper at durham dot ac dot uk
2007-02-28 18:18 ` burnus at gcc dot gnu dot org
2007-02-28 18:26 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).