Re: [PRs fortran/82972, fortran/83088, fortran/85851] Fix ICE with -finit-derived when using iso_c_binding

2018-06-24 Thread Fritz Reese
Thanks for the review. I will commit tomorrow. --- Fritz Reese On Sat, Jun 23, 2018 at 11:57 AM, Steve Kargl wrote: > On Fri, Jun 22, 2018 at 04:46:19PM -0400, Fritz Reese wrote: >> >> In any case, the changelog is here, and the patch is attached. Aside >> from the issues mentioned below the

Re: [PRs fortran/82972, fortran/83088, fortran/85851] Fix ICE with -finit-derived when using iso_c_binding

2018-06-23 Thread Steve Kargl
On Fri, Jun 22, 2018 at 04:46:19PM -0400, Fritz Reese wrote: > > In any case, the changelog is here, and the patch is attached. Aside > from the issues mentioned below the compile bootstraps and regression > tests successfully. Does this look OK for trunk? Furthermore, this > patch comes a bit

Re: [PRs fortran/82972, fortran/83088, fortran/85851] Fix ICE with -finit-derived when using iso_c_binding

2018-06-22 Thread Steve Kargl
On Fri, Jun 22, 2018 at 04:46:19PM -0400, Fritz Reese wrote: > > With the patch, the trunk compiler does not exhibit the bugs in the > mentioned PRs (82972, 83088, 85851). I did encounter some issues > building and regression testing the trunk compiler which I am certain > are unrelated. The

[PRs fortran/82972, fortran/83088, fortran/85851] Fix ICE with -finit-derived when using iso_c_binding

2018-06-22 Thread Fritz Reese
All, The attached patch generates special initializers for derived-type c_ptr and c_funptr symbols so they are handled correctly by the translation phase. Previously, an EXPR_STRUCTURE expression was generated for both types, as c_ptr and c_funptr are structure types with a c_address field. The