public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58224] New: -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden
@ 2013-08-23 5:56 zeccav at gmail dot com
2013-09-02 12:39 ` [Bug fortran/58224] " dominiq at lps dot ens.fr
2021-02-27 9:51 ` zeccav at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: zeccav at gmail dot com @ 2013-08-23 5:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58224
Bug ID: 58224
Summary: -fcheck=pointer should detect that an unallocated
allocatable data-target is forbidden
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
! gfortran -fcheck=pointer should detect at run time that
! an unallocated allocatable data-target is forbidden
! in a data pointer assignment
real, allocatable, target :: qq
pointer q
q => qq
end
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/58224] -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden
2013-08-23 5:56 [Bug fortran/58224] New: -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden zeccav at gmail dot com
@ 2013-09-02 12:39 ` dominiq at lps dot ens.fr
2021-02-27 9:51 ` zeccav at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-09-02 12:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58224
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-09-02
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. It may be a duplicate.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/58224] -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden
2013-08-23 5:56 [Bug fortran/58224] New: -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden zeccav at gmail dot com
2013-09-02 12:39 ` [Bug fortran/58224] " dominiq at lps dot ens.fr
@ 2021-02-27 9:51 ` zeccav at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: zeccav at gmail dot com @ 2021-02-27 9:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58224
--- Comment #3 from Vittorio Zecca <zeccav at gmail dot com> ---
Still in trunk.
The NAG nagfor compiler detects the issue at compile time.
nagfor gfbug103.f
NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042
Warning: gfbug103.f, line 8: Pointer Q never dereferenced
Error: gfbug103.f, line 8: ALLOCATABLE variable QQ used but never ALLOCATEd
[NAG Fortran Compiler pass 1 error termination, 1 error, 1 warning]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-27 9:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 5:56 [Bug fortran/58224] New: -fcheck=pointer should detect that an unallocated allocatable data-target is forbidden zeccav at gmail dot com
2013-09-02 12:39 ` [Bug fortran/58224] " dominiq at lps dot ens.fr
2021-02-27 9:51 ` zeccav at gmail dot com
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).