public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18578] New: intent(inout) violation is not detected
@ 2004-11-20 17:11 Thomas dot Koenig at online dot de
2004-11-20 17:46 ` [Bug fortran/18578] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: Thomas dot Koenig at online dot de @ 2004-11-20 17:11 UTC (permalink / raw)
To: gcc-bugs
$ 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 vary.f90
program main
call foo(3.0)
contains
subroutine foo(a)
real, intent(inout) :: a
a = a + 3.
end subroutine foo
end program main
$ gfortran vary.f90
$
The compiler should detect that the acutal parameter cannot be intent(inout)
in this case.
--
Summary: intent(inout) violation is not detected
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=18578
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/18578] intent(inout) violation is not detected
2004-11-20 17:11 [Bug fortran/18578] New: intent(inout) violation is not detected Thomas dot Koenig at online dot de
@ 2004-11-20 17:46 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-20 17:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-20 17:46 -------
I assume you are talking about:
call foo(3.0)
if so confirmed, there should be a warning about this being undefined.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-11-20 17:46:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18578
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-20 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-20 17:11 [Bug fortran/18578] New: intent(inout) violation is not detected Thomas dot Koenig at online dot de
2004-11-20 17:46 ` [Bug fortran/18578] " pinskia 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).