[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 Dominique d'Humieres changed: What|Removed |Added CC||mrestelli at gmail dot com --- Comment #21 from Dominique d'Humieres --- *** Bug 67123 has been marked as a duplicate of this bug. ***
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 vehre at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #20 from vehre at gcc dot gnu.org --- Given that 68108 is marked as fixed and there are no other complaints, I am closing.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #19 from Steve Kargl --- On Tue, Oct 27, 2015 at 01:01:37AM +, juergen.reuter at desy dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 > > --- Comment #17 from Jürgen Reuter --- > Done, > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68108 > I may have a patch already written. Need to run testsuite.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #18 from Steve Kargl --- On Tue, Oct 27, 2015 at 01:01:37AM +, juergen.reuter at desy dot de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 > > --- Comment #17 from Jürgen Reuter --- > Done, > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68108 > I may have a patch already written. Need to run testsuite.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #17 from Jürgen Reuter --- Done, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68108
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org --- Comment #16 from kargl at gcc dot gnu.org --- (In reply to Jürgen Reuter from comment #15) > Here it it: > {{{ > module lexers > implicit none > private > type :: template_t > private > character(256) :: charset1 > integer :: len1 > end type template_t > > contains > > subroutine match_quoted (tt, s, n) > type(template_t), intent(in) :: tt > character(*), intent(in) :: s > integer, intent(out) :: n > character(tt%len1) :: ch1 > ch1 = tt%charset1 > end subroutine match_quoted > > end module lexers > }}} > I believe this comes from your commit, so I don't open up a new ticket. > Would be cool if this can be solved quickly. I doubt that it is related to Andre's patch as nothing in the above code uses ALLOCATE. The error messages is also one that I just introduced. So, submit a PR.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #15 from Jürgen Reuter --- Here it it: {{{ module lexers implicit none private type :: template_t private character(256) :: charset1 integer :: len1 end type template_t contains subroutine match_quoted (tt, s, n) type(template_t), intent(in) :: tt character(*), intent(in) :: s integer, intent(out) :: n character(tt%len1) :: ch1 ch1 = tt%charset1 end subroutine match_quoted end module lexers }}} I believe this comes from your commit, so I don't open up a new ticket. Would be cool if this can be solved quickly.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #14 from Jürgen Reuter --- These changes seem to break our code. Will provide an example in a minute.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #13 from vehre at gcc dot gnu.org --- Author: vehre Date: Mon Oct 26 13:03:22 2015 New Revision: 229353 URL: https://gcc.gnu.org/viewcvs?rev=229353&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2015-10-26 Andre Vehreschild PR fortran/66927 * trans-array.c (evaluate_bound): For deferred length arrays get the bounds directly from the descriptor, i.e., prevent using constant zero lower bound from the gfc_conv_array_lbound () routine. (gfc_conv_section_startstride): Hand deferred array status to evaluate_bound (). (gfc_conv_expr_descriptor): Same. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #12 from vehre at gcc dot gnu.org --- I can confirm that issue. Don't know how to fix it yet, though. Looks like the scalarizer is not coping correctly with a AS_DEFERRED array.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #11 from H.J. Lu --- On Linux/ia32, I got spawn [open ...]^M *** Error in `./allocate_with_source_10.exe': free(): invalid next size (fast): 0x09dcebc8 *** Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0xf7766bdf in ??? #1 0x456e2e68 in ??? #2 0x456e5a03 in ??? #3 0x456e7c5e in ??? #4 0x45658960 in ??? #5 0x4565ebf2 in ??? #6 0x4565a4e3 in ??? #7 0x4565e481 in ??? #8 0x457a35fb in ??? #9 0x4565a4e3 in ??? #10 0x457a36f0 in ??? #11 0x45777192 in ??? #12 0x45777424 in ??? #13 0x45688969 in ??? #14 0x456dbf12 in ??? #15 0x456e4899 in ??? #16 0x456e7f3f in ??? #17 0x804916e in ??? #18 0x80492a2 in ??? #19 0x80492e2 in ??? #20 0x456896f4 in ??? #21 0x8048780 in ??? FAIL: gfortran.dg/allocate_with_source_10.f08 -O0 execution test GCC is configured with --prefix=/usr/6.0.0 --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --enable-libmpx i686-linux --with-fpmath=sse --enable-languages=c,c++,fortran,java,lto,objc
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #10 from vehre at gcc dot gnu.org --- Author: vehre Date: Sun Oct 25 13:02:32 2015 New Revision: 229295 URL: https://gcc.gnu.org/viewcvs?rev=229295&root=gcc&view=rev Log: Added missing testcases of r229294 for patch of PR fortran/66927. Added: trunk/gcc/testsuite/gfortran.dg/allocate_with_source_10.f08 trunk/gcc/testsuite/gfortran.dg/allocate_with_source_11.f08
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #9 from vehre at gcc dot gnu.org --- Author: vehre Date: Sun Oct 25 12:28:57 2015 New Revision: 229294 URL: https://gcc.gnu.org/viewcvs?rev=229294&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2015-10-25 Andre Vehreschild PR fortran/66927 PR fortran/67044 * trans-array.c (build_array_ref): Modified call to gfc_get_class_array_ref to adhere to new interface. (gfc_conv_expr_descriptor): For one-based arrays that are filled by a loop starting at one the start index of the source array has to be mangled into the offset. * trans-expr.c (gfc_get_class_array_ref): When the tree to get the _data component is present already, add a way to supply it. (gfc_copy_class_to_class): Allow to copy to a derived type also. * trans-stmt.c (gfc_trans_allocate): Do not conv_expr_descriptor for functions returning a class or derived object. Get the reference instead. * trans.h: Interface change of gfc_get_class_array_ref. gcc/testsuite/ChangeLog: 2015-10-25 Andre Vehreschild PR fortran/66927 PR fortran/67044 * gfortran.dg/allocate_with_source_10.f08: New test. * gfortran.dg/allocate_with_source_11.f08: New test. * gfortran.dg/class_array_15.f03: Changed count of expected _builtin_frees to 11. One step of temporaries is spared, therefore the allocatable component of that temporary is not to be freeed. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/fortran/trans-expr.c trunk/gcc/fortran/trans-stmt.c trunk/gcc/fortran/trans.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/class_array_15.f03
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 Richard Biener changed: What|Removed |Added Priority|P3 |P4
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 --- Comment #8 from vehre at gcc dot gnu.org --- More elaborate patch available at: https://gcc.gnu.org/ml/fortran/2015-09/msg00142.html This patch also handles functions for source= that return a class object.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 vehre at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |vehre at gcc dot gnu.org --- Comment #7 from vehre at gcc dot gnu.org --- Currently checking whether the bug can be fixed more elegantly.
[Bug fortran/66927] [6 Regression] ICE in gfc_conf_procedure_call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927 Richard Biener changed: What|Removed |Added Version|unknown |6.0 Target Milestone|--- |6.0 Summary|[6.0 regression] ICE in |[6 Regression] ICE in |gfc_conf_procedure_call |gfc_conf_procedure_call