This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18579] New: intent(out) violation is not detected
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2004 17:15:31 -0000
- Subject: [Bug fortran/18579] New: intent(out) violation is not detected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gfortran -v
Reading specs from /home/ig25/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc/configure --prefix=/home/ig25 --enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041120 (experimental)
$ cat vary2.f90
program main
real :: b
call foo(b)
contains
subroutine foo(a)
real, intent(out) :: a
a = a + 3.
end subroutine foo
end program main
$ gfortran vary2.f90
$
This violation of intent(out) should be reported. It's there for a reason...
--
Summary: intent(out) violation is not detected
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
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=18579