public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/66544] New: ICE on function with pointer result in combination with implicit none
@ 2015-06-15 17:15 gerhard.steinmetz.fortran@t-online.de
2015-06-17 10:57 ` [Bug fortran/66544] " dominiq at lps dot ens.fr
0 siblings, 1 reply; 2+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-06-15 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66544
Bug ID: 66544
Summary: ICE on function with pointer result in combination
with implicit none
Product: gcc
Version: 5.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
This code with "implicit none" :
module m
implicit none
contains
function f() result(z)
procedure(f), pointer :: z
end
end module
yields (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit) :
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1064
---
Deleting "implicit none" from source :
module m
contains
function f() result(z)
implicit none
procedure(f), pointer :: z
end
end module
$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize -c z0.f90
function f() result(z)
1
Warning: Return value 'z' of function 'f' declared at (1) not set
---
With option -fimplicit-none same issue as above :
$ gfortran -g -O0 -Wall ... -fimplicit-none -c z0.f90
z0.f90:3:0: internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1064
function f() result(z)
^
Please submit a full bug report,
with preprocessed source if appropriate.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/66544] ICE on function with pointer result in combination with implicit none
2015-06-15 17:15 [Bug fortran/66544] New: ICE on function with pointer result in combination with implicit none gerhard.steinmetz.fortran@t-online.de
@ 2015-06-17 10:57 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-17 10:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66544
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-06-17
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8 up to trunk (6.0).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-17 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-15 17:15 [Bug fortran/66544] New: ICE on function with pointer result in combination with implicit none gerhard.steinmetz.fortran@t-online.de
2015-06-17 10:57 ` [Bug fortran/66544] " dominiq at lps dot ens.fr
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).