------- Comment #23 from dominiq at lps dot ens dot fr 2010-07-24 07:49 ------- (In reply to comment #22) > > In my opinion revision 162487 is only a partial fix of the problem. If I > > split > > a modified test case in two files [...] I still get [...] Bus error > > Does -flto help?
Yes: [macbook] f90/bug% gfc -flto -fwhole-file -m32 -O3 -fomit-frame-pointer char_array_structure_constructor_db_1.f90 char_array_structure_constructor_db_2.f90 [macbook] f90/bug% a.out [macbook] f90/bug% > > Note that it is not surprising since -fwhole-file operates at the file > > level. > > Well, the middle-end also operates on single-file level: Thus, there is no > reason to break. I am not sure to understand the comment. In my opinion, valid multifile fortran should never be miscompiled (and should not require -lto to do so!-). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945