public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38389] New: (DE)ALLOCATE compile time check for same variable
@ 2008-12-03 19:17 burnus at gcc dot gnu dot org
2008-12-05 21:05 ` [Bug fortran/38389] " kargl at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-12-03 19:17 UTC (permalink / raw)
To: gcc-bugs
The Intel Fortran compiler has:
error #8112: The same name cannot be specified more than once in a DEALLOCATE
statement. [X]
deallocate(x, x, errmsg=err)
----------------^
Expected: Similar diagnostics for gfortran
--
Summary: (DE)ALLOCATE compile time check for same variable
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38389
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/38389] (DE)ALLOCATE compile time check for same variable
2008-12-03 19:17 [Bug fortran/38389] New: (DE)ALLOCATE compile time check for same variable burnus at gcc dot gnu dot org
@ 2008-12-05 21:05 ` kargl at gcc dot gnu dot org
2008-12-05 21:26 ` kargl at gcc dot gnu dot org
2009-03-31 14:22 ` kargl at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-12-05 21:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from kargl at gcc dot gnu dot org 2008-12-05 21:02 -------
I'll take this as part of the [de]allocate work. Note, this also causes a
segfault with all versions of gfortran
program a
implicit none
integer, allocatable :: i(:)
allocate(i(4))
deallocate(i, stat=i(1))
end program a
My current patch does
troutmask:sgk[254] gfc4x -o z b.f90
b.f90:6.22:
deallocate(i, stat=i(1))
1
Error: stat-variable at (1) shall not be deallocated within the same DEALLOCATE
statement
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |kargl at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-12-05 21:02:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38389
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/38389] (DE)ALLOCATE compile time check for same variable
2008-12-03 19:17 [Bug fortran/38389] New: (DE)ALLOCATE compile time check for same variable burnus at gcc dot gnu dot org
2008-12-05 21:05 ` [Bug fortran/38389] " kargl at gcc dot gnu dot org
@ 2008-12-05 21:26 ` kargl at gcc dot gnu dot org
2009-03-31 14:22 ` kargl at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-12-05 21:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2008-12-05 21:24 -------
I have a patch for the original problem.
deallocate_alloc_opt_1.f90:23.14-17:
deallocate(i, i)
1 2
Error: Allocate-object at (1) also appears at (2)
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sgk at troutmask dot apl dot
| |washington dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38389
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/38389] (DE)ALLOCATE compile time check for same variable
2008-12-03 19:17 [Bug fortran/38389] New: (DE)ALLOCATE compile time check for same variable burnus at gcc dot gnu dot org
2008-12-05 21:05 ` [Bug fortran/38389] " kargl at gcc dot gnu dot org
2008-12-05 21:26 ` kargl at gcc dot gnu dot org
@ 2009-03-31 14:22 ` kargl at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-03-31 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kargl at gcc dot gnu dot org 2009-03-31 14:22 -------
Fixed on trunk.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38389
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-31 14:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-03 19:17 [Bug fortran/38389] New: (DE)ALLOCATE compile time check for same variable burnus at gcc dot gnu dot org
2008-12-05 21:05 ` [Bug fortran/38389] " kargl at gcc dot gnu dot org
2008-12-05 21:26 ` kargl at gcc dot gnu dot org
2009-03-31 14:22 ` kargl 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).