public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-14 6:28 ` burnus at gcc dot gnu.org
2011-09-14 6:29 ` burnus at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-09-14 6:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-14 06:27:30 UTC ---
Author: burnus
Date: Wed Sep 14 06:27:25 2011
New Revision: 178842
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178842
Log:
Really add:
2011-09-14 Tobias Burnus <burnus@net-b.de>
PR fortran/34547
PR fortran/50375
* gfortran.dg/null_5.f90: New.
* gfortran.dg/null_6.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/null_5.f90
trunk/gcc/testsuite/gfortran.dg/null_6.f90
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
2011-09-14 6:28 ` [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid burnus at gcc dot gnu.org
@ 2011-09-14 6:29 ` burnus at gcc dot gnu.org
2011-09-14 7:21 ` burnus at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-09-14 6:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-14 06:26:13 UTC ---
Author: burnus
Date: Wed Sep 14 06:26:07 2011
New Revision: 178841
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178841
Log:
2011-09-14 Tobias Burnus <burnus@net-b.de>
PR fortran/34547
PR fortran/50375
* check.c (gfc_check_null): Allow allocatables as MOLD to NULL.
* resolve.c (resolve_transfer): Reject NULL without MOLD.
* interface.c (gfc_procedure_use): Reject NULL without MOLD
if no explicit interface is known.
(gfc_search_interface): Reject NULL without MOLD if it would
lead to ambiguity.
2011-09-14 Tobias Burnus <burnus@net-b.de>
PR fortran/34547
PR fortran/50375
* gfortran.dg/null_5.f90: New.
* gfortran.dg/null_6.f90: New.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/check.c
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
2011-09-14 6:28 ` [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid burnus at gcc dot gnu.org
2011-09-14 6:29 ` burnus at gcc dot gnu.org
@ 2011-09-14 7:21 ` burnus at gcc dot gnu.org
2013-06-25 17:48 ` dominiq at lps dot ens.fr
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-09-14 7:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-14 07:19:03 UTC ---
The patch fixes the issues of comment 0.
However, one should go through the lengthy, convoluted thread at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/f014195ccf7b93e6/
to check whether it contains some still-unfixed issues.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2011-09-14 7:21 ` burnus at gcc dot gnu.org
@ 2013-06-25 17:48 ` dominiq at lps dot ens.fr
2013-08-25 16:01 ` [Bug fortran/34547] [4.8/4.9 regression] " mikael at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-25 17:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> However, one should go through the lengthy, convoluted thread at
>
> http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/f014195ccf7b93e6/
>to check whether it contains some still-unfixed issues.
The thread is too convoluted for me. Is this still an issue?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2013-06-25 17:48 ` dominiq at lps dot ens.fr
@ 2013-08-25 16:01 ` mikael at gcc dot gnu.org
2013-09-06 11:26 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu.org @ 2013-08-25 16:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
Summary|NULL(): Fortran 2003 |[4.8/4.9 regression]
|changes, accepts invalid, |NULL(): Fortran 2003
|ICE on invalid |changes, accepts invalid,
| |ICE on invalid
--- Comment #9 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #8)
>
> gives an ICE with 4.8.1 and trunk (4.9)
>
> pr34547_1.f90:2:0: internal compiler error: in gfc_conv_expr_descriptor, at
> fortran/trans-array.c:6423
> print *, NULL(i)
>
> It compiles with 4.7.3, and gives the reported error with 4.6.4.
... which makes it a regression.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2013-08-25 16:01 ` [Bug fortran/34547] [4.8/4.9 regression] " mikael at gcc dot gnu.org
@ 2013-09-06 11:26 ` rguenth at gcc dot gnu.org
2013-10-16 9:48 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-06 11:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2013-09-06 11:26 ` rguenth at gcc dot gnu.org
@ 2013-10-16 9:48 ` jakub at gcc dot gnu.org
2013-12-01 10:53 ` burnus at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.2 |4.8.3
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2013-10-16 9:48 ` jakub at gcc dot gnu.org
@ 2013-12-01 10:53 ` burnus at gcc dot gnu.org
2014-01-19 11:29 ` pault at gcc dot gnu.org
2014-01-19 11:31 ` pault at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-12-01 10:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #8)
> Confirmed, however compiling the second test in comment #0, namely
>
> integer, allocatable :: i(:)
> print *, NULL(i)
> end
> gives an ICE with 4.8.1 and trunk (4.9)
"If an input item is a pointer, it shall be associated with a definable target
and data are transferred from the file to the associated target. If an output
item is a pointer, it shall be associated with a target and data are
transferred
from the target to the file." (F2008, "9.6.3 Data transfer input/output list")
And NULL(...) isn't. Fixed by Paul's patch at
http://gcc.gnu.org/ml/fortran/2013-11/msg00203.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2013-12-01 10:53 ` burnus at gcc dot gnu.org
@ 2014-01-19 11:29 ` pault at gcc dot gnu.org
2014-01-19 11:31 ` pault at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: pault at gcc dot gnu.org @ 2014-01-19 11:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
--- Comment #13 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Jan 19 11:28:44 2014
New Revision: 206772
URL: http://gcc.gnu.org/viewcvs?rev=206772&root=gcc&view=rev
Log:
2014-01-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34547
* resolve.c (resolve_transfer): EXPR_NULL is always in an
invalid context in a transfer statement.
2014-01-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34547
* gfortran.dg/null_5.f90 : Include new error.
* gfortran.dg/null_6.f90 : Include new error.
Modified:
branches/gcc-4_8-branch/gcc/fortran/ChangeLog
branches/gcc-4_8-branch/gcc/fortran/resolve.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/null_5.f90
branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/null_6.f90
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/34547] [4.8/4.9 regression] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2014-01-19 11:29 ` pault at gcc dot gnu.org
@ 2014-01-19 11:31 ` pault at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: pault at gcc dot gnu.org @ 2014-01-19 11:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34547
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #14 from Paul Thomas <pault at gcc dot gnu.org> ---
Finally backported to 4.8!
Thanks for the report
Paul
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-01-19 11:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-34547-4@http.gcc.gnu.org/bugzilla/>
2011-09-14 6:28 ` [Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid burnus at gcc dot gnu.org
2011-09-14 6:29 ` burnus at gcc dot gnu.org
2011-09-14 7:21 ` burnus at gcc dot gnu.org
2013-06-25 17:48 ` dominiq at lps dot ens.fr
2013-08-25 16:01 ` [Bug fortran/34547] [4.8/4.9 regression] " mikael at gcc dot gnu.org
2013-09-06 11:26 ` rguenth at gcc dot gnu.org
2013-10-16 9:48 ` jakub at gcc dot gnu.org
2013-12-01 10:53 ` burnus at gcc dot gnu.org
2014-01-19 11:29 ` pault at gcc dot gnu.org
2014-01-19 11:31 ` pault at gcc dot gnu.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).