[Bug fortran/71412] [F03] iso_c_bindings and optimization interaction bug

2018-06-23 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #14 from relliott at umn dot edu --- It is great to see some life on this bug report. This is still an important issue for our project! Is there any chance of reviving the discussion and coming to a resolution?

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-06 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #9 from relliott at umn dot edu --- Hello, I still believe there is a bug associated with the iso_c_bindings and c_loc() support. In the attached, I've created an example program that shows that ALLOCATABLE local variables

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-06 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #7 from relliott at umn dot edu --- Hello, I just want to make one think certain. You quoted section 6.3.3.1 of the J3/04-007 document to show that a NAMED local allocatable variable would be deallocated at the end of a routine

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #6 from relliott at umn dot edu --- > Have you considered the SAVE attribute? > > integer(c_int), pointer,save:: val > > laptop-kargl:kargl[246] gmake > gfc -O3 -g -Wall -pedantic -c skeleton-f.F90 > ~/work

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #4 from relliott at umn dot edu --- > Ahem, give val the SAVE attribute. > > integer(c_int), pointer, save :: val Hi, Thanks for your help. Unfortunately, I don't think using save will serve my purpose in this case.

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #2 from relliott at umn dot edu --- > I believe gfortran's behavior conforms to the standard. F2003 states > > When the execution of a procedure is terminated by execution > of a RETURN or END statement, an allocata

[Bug fortran/71412] New: iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: relliott at umn dot edu Target Milestone: --- Created attachment 38644 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38644=edit minimal skeleton code that illustrates the bug A problem exists in the