This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug fortran/45827] mio_component_ref(): Component not found when mixing f90 and f03 in large projects
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 1 Oct 2010 17:17:21 +0200
- Subject: Re: [Bug fortran/45827] mio_component_ref(): Component not found when mixing f90 and f03 in large projects
- References: <bug-45827-4@http.gcc.gnu.org/bugzilla/> <20101001143948.D63711C0008C@msfrf2419.sfr.fr>
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.