------- Comment #22 from burnus at gcc dot gnu dot org 2010-07-25 10:14 ------- The patch in comment 18 causes a segfault (in gfc_generate_function_code for "cfun->function_end_locus = input_location" [Invalid write of size 4]) for the test case in PR 40011 comment 0 (the one after "Your patch fixes some Segmentation faults (a couple)") - the test case works otherwise. No -fwhole-program is needed.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873