[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 --- Comment #7 from Vittorio Zecca --- Fixed in trung February 15th, 2021.
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 --- Comment #6 from Fritz Reese --- Author: foreese Date: Mon Jun 25 19:23:49 2018 New Revision: 262107 URL: https://gcc.gnu.org/viewcvs?rev=262107&root=gcc&view=rev Log: 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 Backport from trunk. * expr.c (component_initializer): Assign init expr to c->initializer. (generate_isocbinding_initializer): New. (gfc_generate_initializer): Call generate_isocbinding_initializer to generate initializers for c_ptr and c_funptr with -finit-derived. 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 Backport from trunk. * gfortran.dg/init_flag_17.f90: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/init_flag_17.f90 - copied unchanged from r262104, trunk/gcc/testsuite/gfortran.dg/init_flag_17.f90 Modified: branches/gcc-8-branch/ (props changed) branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/expr.c branches/gcc-8-branch/gcc/testsuite/ChangeLog Propchange: branches/gcc-8-branch/ ('svn:mergeinfo' added)
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 --- Comment #5 from Fritz Reese --- Author: foreese Date: Mon Jun 25 19:07:03 2018 New Revision: 262106 URL: https://gcc.gnu.org/viewcvs?rev=262106&root=gcc&view=rev Log: 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 Backport from trunk. * expr.c (component_initializer): Assign init expr to c->initializer. (generate_isocbinding_initializer): New. (gfc_generate_initializer): Call generate_isocbinding_initializer to generate initializers for c_ptr and c_funptr with -finit-derived. 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 Backport from trunk. * gfortran.dg/init_flag_17.f90: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/init_flag_17.f90 - copied unchanged from r262104, trunk/gcc/testsuite/gfortran.dg/init_flag_17.f90 Modified: branches/gcc-7-branch/ (props changed) branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog Propchange: branches/gcc-7-branch/ ('svn:mergeinfo' modified)
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 Bug 85851 depends on bug 82972, which changed state. Bug 82972 Summary: [8/9 Regression] ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82972 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 Fritz Reese changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Fritz Reese --- Fixed in r262104. *** This bug has been marked as a duplicate of bug 82972 ***
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 --- Comment #3 from Fritz Reese --- Author: foreese Date: Mon Jun 25 18:33:11 2018 New Revision: 262104 URL: https://gcc.gnu.org/viewcvs?rev=262104&root=gcc&view=rev Log: Fix -finit-derived for c_ptr and c_funptr in programs which use iso_c_binding. gcc/fortran/ChangeLog: 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 * expr.c (component_initializer): Assign init expr to c->initializer. (generate_isocbinding_initializer): New. (gfc_generate_initializer): Call generate_isocbinding_initializer to generate initializers for c_ptr and c_funptr with -finit-derived. gcc/testsuite/ChangeLog: 2018-06-25 Fritz Reese PR fortran/82972 PR fortran/83088 PR fortran/85851 * gfortran.dg/init_flag_17.f90: New testcase. Added: trunk/gcc/testsuite/gfortran.dg/init_flag_17.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/expr.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 Fritz Reese changed: What|Removed |Added Status|NEW |ASSIGNED Last reconfirmed|2018-05-20 00:00:00 |2018-5-21 Depends on||82972 Assignee|unassigned at gcc dot gnu.org |foreese at gcc dot gnu.org --- Comment #2 from Fritz Reese --- Probable duplicate of pr82972 and pr83088. Sorry I have not tracked this issue down yet. My solution for -finit-derived requires special consideration for the iso-c-binding structures such as c_ptr since the structure intialization expression currently generated is invalid for those structures. Something in the middle-end changed with 8.x that has further invalidated my solution for -finit-derived. I am [still] working on this and a few other issues with -finit-derived. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82972 [Bug 82972] [8/9 Regression] ICE with -finit-derived in gfc_conv_structure, at fortran/trans-expr.c:7733 (and others)
[Bug fortran/85851] [8/9 Regression] ICE in gfc_conv_structure Segmentation fault at trans-expr.c:7810
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85851 Dominique d'Humieres changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED |NEW Known to work||7.3.0 Keywords||ice-on-valid-code Last reconfirmed||2018-05-20 CC||foreese at gcc dot gnu.org Ever confirmed|0 |1 Summary|trunk 260152 ICE in |[8/9 Regression] ICE in |gfc_conv_structure |gfc_conv_structure |Segmentation fault at |Segmentation fault at |trans-expr.c:7810 |trans-expr.c:7810 Target Milestone|--- |8.2 Known to fail||8.1.0, 9.0 --- Comment #1 from Dominique d'Humieres --- Likely revision r 254648 (pr82886).