https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110360
--- Comment #16 from anlauf at gcc dot gnu.org --- In the meantime Bill opened pr110419 and posted: spawn [open ...] by value(kind=1): B by value(kind=1): A Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #0 0xf7ba03f3 in ??? #1 0x10000d34 in val at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:47 #2 0x100009db in p at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:20 #3 0x100009db in main at /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/value_9.f90:45 FAIL: gfortran.dg/value_9.f90 -O3 -g execution test Line 20 corresponds to call val ("A",char(65)) which means that there should be a temporary holding the result of char(65) which should be passed by value.