------- Comment #3 from rguenth at gcc dot gnu dot org 2009-09-22 15:34 ------- Reconfirmed with current trunk. If I move three to the top of the file I even get
/tmp/ccGHHCCU.o: In function `main': t.f90:(.text+0x1e): undefined reference to `three_' t.f90:(.text+0x28): undefined reference to `three_' collect2: ld returned 1 exit status this makes -fwhole-file less useful than necessary. LTO manages to fix up the decls (thus, with -flto it builds and links fine with -fwhole-program). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2009-07-28 13:12:15 |2009-09-22 15:34:34 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873