[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 Jürgen Reuter changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Jürgen Reuter --- Apparently, Tobias was faster in reducing the reproducer than myself. With the fix by Tobias (I checked r265248) all of our code including testsuites with different sets of flags works again. Thanks for the quick fix! Incredible job!
[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 --- Comment #4 from Tobias Burnus --- Author: burnus Date: Wed Oct 17 19:58:58 2018 New Revision: 265248 URL: https://gcc.gnu.org/viewcvs?rev=265248=gcc=rev Log: Fix select-type regression PR fortran/87632 * resolve.c (resolve_select_type): Use correct variable. PR fortran/87632 * gfortran.dg/select_type_47.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/select_type_47.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 --- Comment #3 from Tobias Burnus --- Untested patch: --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -8914,7 +8914,7 @@ resolve_select_type (gfc_code *code, gfc_namespace *old_ns) if (ref2) { if (code->expr1->symtree->n.sym->attr.untyped) - code->expr1->symtree->n.sym->ts = ref->u.c.component->ts; + code->expr1->symtree->n.sym->ts = ref2->u.c.component->ts; selector_type = CLASS_DATA (ref2->u.c.component)->ts.u.derived; } else
[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 --- Comment #2 from Paul Thomas --- (In reply to Jürgen Reuter from comment #0) > There is a new ICE, most likely introduced by r265232, r265134 was still > working. I will add a reproducer after lunch. Why most likely :-) ? There is also: r265171 & r265175 50:50 me and Tobias - I look forward to your reduction. Thanks Paul
[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 --- Comment #1 from Jürgen Reuter --- Created attachment 44847 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44847=edit First (long) reproducer This is a first "complete" reproducer. I will boil it down now.
[Bug fortran/87632] [9 regression] ICE segmentation fault in f951
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87632 Richard Biener changed: What|Removed |Added Target Milestone|--- |9.0 Summary|[9.0 regression] ICE|[9 regression] ICE |segmentation fault in f951 |segmentation fault in f951