------- Comment #17 from mikael at gcc dot gnu dot org 2008-11-18 13:23 ------- (In reply to comment #16) > Btw it also makes comment #12 compile, while the resulting executable produces > a segfault. But I guess this is due to the weird things which this program > does(?). Not really. The problems comes from the assignment to my_message, which is allocatable and should be (implicitly) reallocated. This is PR35810. Allocating my_message separately fixes the segfault, but I still get a valgrind error. :-(
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36463