[Bug fortran/45066] ICE in namelist read in snapshot of 7/24/2010
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 25 15:04:00 GMT 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
More information about the Gcc-bugs
mailing list