[Bug fortran/45827] mio_component_ref(): Component not found when mixing f90 and f03 in large projects

Mikael Morin mikael.morin@sfr.fr
Fri Oct 1 15:17:00 GMT 2010


On Friday 01 October 2010 16:39:35 jvdelisle at gcc dot gnu.org wrote:
> 2010-10-01 14:39:23 UTC --- This look suspicious:  valgrind on f951
> 
No, it is unrelated. It happens on the most simple testcases like:
!!!!
end
!!!!

It can be circumvented by the following patch. But it is harmless (unreleased 
memory).

--- a/cpp.c
+++ b/cpp.c
@@ -510,10 +510,11 @@ gfc_cpp_post_options (void)
          || gfc_cpp_option.dump_includes))
     gfc_fatal_error("To enable preprocessing, use -cpp");
 
-  cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table);
   if (!gfc_cpp_enabled ())
     return;
 
+  cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table);
+
   gcc_assert (cpp_in);
 
   /* The cpp_options-structure defines far more flags than those set here.



More information about the Gcc-bugs mailing list