[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #9 from Martin Liška --- Created attachment 47867 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47867=edit Reduced test-case
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 Martin Liška changed: What|Removed |Added Status|WAITING |NEW --- Comment #8 from Martin Liška --- Ok, there are 2 problems: 1) gfortran -c -g gfc_vector.F90 f951: internal compiler error: Invalid expression in gfc_element_size. 0x77b62e0a __libc_start_main ../csu/libc-start.c:308 this was fixed with r9-6779-g93755deb5c26a821 2) The generate_finalization_wrapper ICE which is still valid on master. I'm going to reduce that..
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #7 from DIL --- Please download the Updated ICE reproducer as I explain in the comments above (the reproducer archive uploaded 2020-01-30). It builds with gcc/8.x just fine, but causes ICE in gfortranc/9.x. As I mentioned, this ICE showed up very early in the gfortran/9.x trunk (on Jan 17, 2019 it already had this ICE).
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #6 from Martin Liška --- (In reply to DIL from comment #5) > If this helps, the gcc/gfortran svn repository from 17 Jan 2019 already had > this regression bug while gcc/gfortran 8.2.0 did not. Hopefully this may > help shorten the length of bisection. But GCC 8 can't compile the file: gfortran -c -g tensor_recursive.F90 tensor_recursive.F90:738:36: private TensBodyGetDataDescr 1 Error: Symbol ‘tensbodygetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tensbodygetdatatype’? tensor_recursive.F90:734:35: private TensBodySetLocation 1 Error: Symbol ‘tensbodysetlocation’ at (1) has no IMPLICIT type; did you mean ‘tensbodygetdatatype’? tensor_recursive.F90:714:38: private TensLayoutGetDataDescr 1 Error: Symbol ‘tenslayoutgetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tenslayoutgetdatatype’? tensor_recursive.F90:706:37: private TensLayoutSetLocation 1 Error: Symbol ‘tenslayoutsetlocation’ at (1) has no IMPLICIT type; did you mean ‘tenslayoutgetbodysize’? tensor_recursive.F90:768:37: private TensRcrsvGetDataDescr 1 Error: Symbol ‘tensrcrsvgetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tensrcrsvgetdatatype’? tensor_recursive.F90:769:36: private TensRcrsvSetLocation 1 Error: Symbol ‘tensrcrsvsetlocation’ at (1) has no IMPLICIT type; did you mean ‘tensrcrsvgetlayout’?
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #5 from DIL --- If this helps, the gcc/gfortran svn repository from 17 Jan 2019 already had this regression bug while gcc/gfortran 8.2.0 did not. Hopefully this may help shorten the length of bisection.
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #4 from DIL --- Sorry, I was removing unnecessary dependencies in order to reduce the reproducer source size, but forgot to remove PRIVATE declaration for the deleted procedures. Now fixed. It builds with gfortran-8.x but produces ICE with gfortran-9.x.
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #3 from DIL --- (In reply to Martin Liška from comment #1) > For older GCC 8 I see: > > tensor_recursive.F90:738:36: > > private TensBodyGetDataDescr > 1 > Error: Symbol ‘tensbodygetdatadescr’ at (1) has no IMPLICIT type; did you > mean ‘tensbodygetdatatype’? > tensor_recursive.F90:734:35: > > private TensBodySetLocation >1 > Error: Symbol ‘tensbodysetlocation’ at (1) has no IMPLICIT type; did you > mean ‘tensbodygetdatatype’? > tensor_recursive.F90:714:38: > > private TensLayoutGetDataDescr > 1 > Error: Symbol ‘tenslayoutgetdatadescr’ at (1) has no IMPLICIT type; did you > mean ‘tenslayoutgetdatatype’? > tensor_recursive.F90:706:37: > > private TensLayoutSetLocation > 1 > Error: Symbol ‘tenslayoutsetlocation’ at (1) has no IMPLICIT type; did you > mean ‘tenslayoutgetbodysize’? > tensor_recursive.F90:768:37: > > private TensRcrsvGetDataDescr > 1 > Error: Symbol ‘tensrcrsvgetdatadescr’ at (1) has no IMPLICIT type; did you > mean ‘tensrcrsvgetdatatype’? > tensor_recursive.F90:769:36: > > private TensRcrsvSetLocation > 1 > Error: Symbol ‘tensrcrsvsetlocation’ at (1) has no IMPLICIT type; did you > mean ‘tensrcrsvgetlayout’? > > Is it really a valid code?
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 --- Comment #2 from DIL --- Created attachment 47742 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47742=edit Updated ICE reproducer Fixed build issues for gfortran-8. Builds with gfortran-8.x but produces ICE with gfortran-9.x.
[Bug fortran/92587] Compiler is unable to generate finalization wrapper
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2020-01-30 CC||marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- For older GCC 8 I see: tensor_recursive.F90:738:36: private TensBodyGetDataDescr 1 Error: Symbol ‘tensbodygetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tensbodygetdatatype’? tensor_recursive.F90:734:35: private TensBodySetLocation 1 Error: Symbol ‘tensbodysetlocation’ at (1) has no IMPLICIT type; did you mean ‘tensbodygetdatatype’? tensor_recursive.F90:714:38: private TensLayoutGetDataDescr 1 Error: Symbol ‘tenslayoutgetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tenslayoutgetdatatype’? tensor_recursive.F90:706:37: private TensLayoutSetLocation 1 Error: Symbol ‘tenslayoutsetlocation’ at (1) has no IMPLICIT type; did you mean ‘tenslayoutgetbodysize’? tensor_recursive.F90:768:37: private TensRcrsvGetDataDescr 1 Error: Symbol ‘tensrcrsvgetdatadescr’ at (1) has no IMPLICIT type; did you mean ‘tensrcrsvgetdatatype’? tensor_recursive.F90:769:36: private TensRcrsvSetLocation 1 Error: Symbol ‘tensrcrsvsetlocation’ at (1) has no IMPLICIT type; did you mean ‘tensrcrsvgetlayout’? Is it really a valid code?