This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41807] [4.5/4.4 Regression] data statement with nested type constructors
- 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: 17 Nov 2009 04:29:57 -0000
- Subject: [Bug fortran/41807] [4.5/4.4 Regression] data statement with nested type constructors
- References: <bug-41807-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from jvdelisle at gcc dot gnu dot org 2009-11-17 04:29 -------
I have confirmed on trunk that removing that snippet clears the regression.
Looking at gfc_is_constant_expr we see a call to array.c (gfc_constant_ac)
which does indeed modify the expr. So we have a bad side effect going on here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41807