public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18566] New: Can vary constants
@ 2004-11-19 13:23 Thomas dot Koenig at online dot de
  2004-11-19 15:13 ` [Bug fortran/18566] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Thomas dot Koenig at online dot de @ 2004-11-19 13:23 UTC (permalink / raw)
  To: gcc-bugs

Should the value of pi change...

The following is very probably illegal code.
Still, it would be nice if this could segfault
instead of silently doing the Wrong Thing.

$ cat variation-constants.f90
module a1
contains
  subroutine foo(b)
    real :: b
    b = 42.
  end subroutine foo
end module a1

program main
  use a1
  real, parameter :: pi = 3.1415926535
  call foo(pi)
  print *,'pi equals ', pi
end program main
$ gfortran variation-constants.f90 && ./a.out
 pi equals    42.00000
$ gfortran -v
Reading specs from /home/zfkts/lib/gcc/ia64-unknown-linux-gnu/4.0.0/specs
Configured with: ../gcc-4.0-20041107/configure --prefix=/home/zfkts
--enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041107 (experimental)

-- 
           Summary: Can vary constants
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-01-05  3:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 13:23 [Bug fortran/18566] New: Can vary constants Thomas dot Koenig at online dot de
2004-11-19 15:13 ` [Bug fortran/18566] " pinskia at gcc dot gnu dot org
2004-11-25 20:29 ` Thomas dot Koenig at online dot de
2004-11-29 14:13 ` [Bug target/18566] Can vary constants (undefined fortran) pinskia at gcc dot gnu dot org
2004-11-30  8:29 ` Thomas dot Koenig at online dot de
2004-12-07 18:48 ` pinskia at gcc dot gnu dot org
2005-01-05  3:44 ` wilson 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).