[Bug fortran/54070] [4.9/5 Regression] Wrong code with allocatable deferred-length (array) function results
neil.n.carlson at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 18 14:47:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54070
--- Comment #30 from neil.n.carlson at gmail dot com ---
Paul, you've done a lot of great work here (a huge thanks!) and I can confirm
that many of my deferred-length character issues seem to be resolved now with
the trunk (r232457, 1/15/2016). I'm uncertain though whether you consider this
PR resolved or if you are still working on it (there were lots of examples in
PRs marked as duplicates). I still have at least one remaining issue with this
trunk version:
class(*), allocatable :: x(:)
allocate(x, source=['foo','bar'])
end
Compiles fine, but produces a run time seg fault:
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x7F85F60F5517
#1 0x7F85F60F5B5E
#2 0x7F85F55F695F
#3 0x7F85F56507ED
#4 0x400932 in __copy_character_1.3416 at bug.f90:?
#5 0x400B91 in MAIN__ at bug.f90:?
Segmentation fault (core dumped)
Should I open another PR for this?
More information about the Gcc-bugs
mailing list