[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #17 from Jakub Jelinek --- Author: jakub Date: Sat Dec 8 13:37:49 2018 New Revision: 266907 URL: https://gcc.gnu.org/viewcvs?rev=266907=gcc=rev Log: PR fortran/88304 * tree-nested.c (convert_local_reference_stmt):

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-07 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-07 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #15 from Harald Anlauf --- (In reply to Jakub Jelinek from comment #14) > Author: jakub > Date: Thu Dec 6 10:28:31 2018 > New Revision: 266847 > > URL: https://gcc.gnu.org/viewcvs?rev=266847=gcc=rev This fixes the original

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-06 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #14 from Jakub Jelinek --- Author: jakub Date: Thu Dec 6 10:28:31 2018 New Revision: 266847 URL: https://gcc.gnu.org/viewcvs?rev=266847=gcc=rev Log: PR fortran/88304 * tree-nested.c

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #13 from Jakub Jelinek --- Created attachment 45158 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45158=edit gcc9-pr88304.patch Untested fix for the tree-nested.c bug, handles it like we handle it in

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #12 from rguenther at suse dot de --- On Wed, 5 Dec 2018, rguenther at suse dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 > > --- Comment #11 from rguenther at suse dot de --- > On Wed, 5 Dec 2018, jakub at

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #11 from rguenther at suse dot de --- On Wed, 5 Dec 2018, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 > > --- Comment #10 from Jakub Jelinek --- > And lastly, what tree-nested.c does in

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #10 from Jakub Jelinek --- And lastly, what tree-nested.c does in cases which don't really fail is pretty weird: module pr88304 implicit none contains subroutine f1 (x) integer, intent(out) :: x x = 5 end subroutine f1

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #9 from Jakub Jelinek --- I'll fix the tree-nested.c issue, but I'm wondering about the clobber. E.g. for module pr88304 implicit none type t integer :: b = -1 integer :: c = 2 end type t contains subroutine f1 (x)

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #8 from Jakub Jelinek --- Reduced testcase: module pr88304 implicit none type t integer :: b = -1 end type t contains subroutine f1 (x) integer (kind = 4), intent(out) :: x x = 5 end subroutine f1 subroutine

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #7 from Harald Anlauf --- (In reply to kargl from comment #6) > (In reply to Harald Anlauf from comment #5) > > > > A derived type with component initialization (like t_fileinfo) should > > implicitly get the SAVE attribute, which

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #5) > > A derived type with component initialization (like t_fileinfo) should > implicitly get the SAVE attribute, which appears to be lost here. > Adding

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #5 from Harald Anlauf --- (In reply to Richard Biener from comment #4) > Confirmed. We do not expect > > CHAIN.10->gattr = {CLOBBER}; > > I believe the FE inserts these now to better share stack slots: Thanks for pointing to the

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Richard Biener changed: What|Removed |Added Status|WAITING |NEW CC|

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-03 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #3 from Harald Anlauf --- Created attachment 45147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45147=edit Minimal netcdf-fortran part for the reproducer Compile the netcdf.f90 header before the testcase.

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Dominique d'Humieres changed: What|Removed |Added Keywords||ice-on-valid-code

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org Target

[Bug fortran/88304] [9 Regression] ICE in use_pointer_in_frame, at tree-nested.c:267

2018-12-02 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88304 --- Comment #1 from Harald Anlauf --- No special options used, just: % gfc-trunk -c -I/opt/gcc/9/pkg/netcdf/include gfcbug152.f90 (where above path hold the gfortran-9 specific netcdf.mod & friends).