This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45066] ICE in namelist read in snapshot of 7/24/2010
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2010 15:04:22 -0000
- Subject: [Bug fortran/45066] ICE in namelist read in snapshot of 7/24/2010
- References: <bug-45066-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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