[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #11 from Thomas Koenig --- Author: tkoenig Date: Sun Feb 24 22:49:47 2019 New Revision: 269179 URL: https://gcc.gnu.org/viewcvs?rev=269179&root=gcc&view=rev Log: 2019-02-24 Thomas Koenig PR fortran/89174 * trans-e

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 Thomas Koenig changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #10 from Thomas Koenig --- This seems to work: Index: trans-expr.c === --- trans-expr.c(Revision 269161) +++ trans-expr.c(Arbeitskopie) @@ -352,7 +352,7

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #9 from Thomas Koenig --- FWITW, there is a difference when handling the MOLD expression in gfc_find_and_cut_at_last_class_ref. In the version that calls gfc_expr_to_initialize, we see (gdb) call debug(base_expr) push:this % mold (C

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #8 from Thomas Koenig --- (In reply to Thomas Koenig from comment #7) > This patch makes the test case work again: This also introduces numerous regressions, so this is not recommended as a fix :-)

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #7 from Thomas Koenig --- This patch makes the test case work again: === --- trans-expr.c(Revision 265171) +++ trans-expr.c(Arbeitskopie) @@ -394,7 +394,

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #6 from Thomas Koenig --- And on my AMD system, it does indeed pass with r265170. OK. Looking at the diff of the tree dumps between the two versions, the difference is --- a.r265170 2019-02-24 10:56:39.138713129 +0100 +++ a.r26517

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #5 from Thomas Koenig --- The problem is with the subroutine, not with the call from the main program. If you split the module and main program into a separate file and compile the modlue with r264951 (a random version which works) a

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-23 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #4 from Thomas Koenig --- Just tried out r265170 on powerpc64le (because that machine boots faster :-), and the test case also segfaults. Hmm...

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-23 Thread neil.n.carlson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 --- Comment #3 from Neil Carlson --- r265171 is the commit that broke the 9.0 trunk; r265171 segfaults but r265170 works correctly. I haven't been able to pinpoint where this stuff was back-ported to the 8 branch, but it definitely was. This exam

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.3 |8.4 --- Comment #2 from Jakub Jelinek -

[Bug fortran/89174] [8/9 Regression] Allocation segfault with CLASS(*) MOLD

2019-02-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89174 Dominique d'Humieres changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED