From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28506 invoked by alias); 19 Nov 2004 13:23:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28357 invoked by uid 48); 19 Nov 2004 13:23:04 -0000 Date: Fri, 19 Nov 2004 13:23:00 -0000 From: "Thomas dot Koenig at online dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20041119132256.18566.Thomas.Koenig@online.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/18566] New: Can vary constants X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg02242.txt.bz2 List-Id: 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