public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18315] New: wrong result for lbound with single argument
@ 2004-11-06 12:43 Thomas dot Koenig at online dot de
2004-11-06 16:10 ` [Bug fortran/18315] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Thomas dot Koenig at online dot de @ 2004-11-06 12:43 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
Thread model: posix
gcc version 4.0.0 20041105 (experimental)
$ cat lbound.f90
program main
implicit none
real :: a(0:9)
integer :: bn(10)
bn = lbound(a)
print *,bn(1)
end program main
$ gfortran lbound.f90
$ ./a.out
1
... it should print 0.
--
Summary: wrong result for lbound with single argument
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
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18315
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/18315] wrong result for lbound with single argument
2004-11-06 12:43 [Bug fortran/18315] New: wrong result for lbound with single argument Thomas dot Koenig at online dot de
@ 2004-11-06 16:10 ` pinskia at gcc dot gnu dot org
2005-09-11 21:52 ` fxcoudert at gcc dot gnu dot org
2005-09-13 8:34 ` [Bug fortran/18315] missing error for incompatible array assignment involving lbound rsandifo at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-06 16:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-06 16:10 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-11-06 16:10:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18315
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/18315] wrong result for lbound with single argument
2004-11-06 12:43 [Bug fortran/18315] New: wrong result for lbound with single argument Thomas dot Koenig at online dot de
2004-11-06 16:10 ` [Bug fortran/18315] " pinskia at gcc dot gnu dot org
@ 2005-09-11 21:52 ` fxcoudert at gcc dot gnu dot org
2005-09-13 8:34 ` [Bug fortran/18315] missing error for incompatible array assignment involving lbound rsandifo at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-11 21:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-09-11 21:51 -------
Are you sure about that, Thomas? Most compilers I have access to (Intel, g95,
g77, Sun, Lahey) says something similar to "The left and right hand sides of
this array syntax assignment must be conformable arrays." or "Array assignment
at (1) has different sizes". I think this code is not standard-conforming.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18315
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/18315] missing error for incompatible array assignment involving lbound
2004-11-06 12:43 [Bug fortran/18315] New: wrong result for lbound with single argument Thomas dot Koenig at online dot de
2004-11-06 16:10 ` [Bug fortran/18315] " pinskia at gcc dot gnu dot org
2005-09-11 21:52 ` fxcoudert at gcc dot gnu dot org
@ 2005-09-13 8:34 ` rsandifo at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-13 8:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-13 08:34 -------
After the patch for 18899, this now works for:
program main
implicit none
real :: a(0:9)
integer :: bn(10)
bn(1:1) = lbound(a)
print *, bn(1)
end program main
but like FX says, we probably ought to report an error
for the mismatch in the original testcase. Reclassifying
as a missing diagnostic bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Keywords|wrong-code |accepts-invalid
Last reconfirmed|2005-05-08 17:28:58 |2005-09-13 08:34:24
date| |
Summary|wrong result for lbound with|missing error for
|single argument |incompatible array
| |assignment involving lbound
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18315
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-18315-9515@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2006-05-13 4:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 12:43 [Bug fortran/18315] New: wrong result for lbound with single argument Thomas dot Koenig at online dot de
2004-11-06 16:10 ` [Bug fortran/18315] " pinskia at gcc dot gnu dot org
2005-09-11 21:52 ` fxcoudert at gcc dot gnu dot org
2005-09-13 8:34 ` [Bug fortran/18315] missing error for incompatible array assignment involving lbound rsandifo at gcc dot gnu dot org
[not found] <bug-18315-9515@http.gcc.gnu.org/bugzilla/>
2006-01-08 5:53 ` pinskia at gcc dot gnu dot org
2006-05-11 15:55 ` paul dot richard dot thomas at cea dot fr
2006-05-13 4:25 ` pault 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).