This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/45066] ICE in namelist read in snapshot of 7/24/2010



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2010-07-25 15:04 -------
This patchlet at least works for the reduce test case. Assuming there is
nothing left to translate.  I am not sure this is the right approach, bu the
-fdump-tree-original matches for with and without -fno-whole-file. 

Index: trans-io.c
===================================================================
--- trans-io.c  (revision 162507)
+++ trans-io.c  (working copy)
@@ -1499,6 +1499,9 @@

   gcc_assert (sym || c);

+  if (base_addr == NULL)
+    return;
+
   /* Build the namelist object name.  */

   string = gfc_build_cstring_const (var_name);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45066


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]