This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Add a testcasef for PR tree-optimization/43688
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 3 Jun 2010 07:54:25 -0700
- Subject: PATCH: Add a testcasef for PR tree-optimization/43688
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43688
is fixed by revision 159343:
http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00395.html
I checked in this testcase as an obvious fix.
H.J.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 160223)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR tree-optimization/43688
+ * gfortran.dg/pr43688.f90: New.
+
2010-06-03 Richard Guenther <rguenther@suse.de>
PR lto/41584
Index: gfortran.dg/pr43688.f90
===================================================================
--- gfortran.dg/pr43688.f90 (revision 0)
+++ gfortran.dg/pr43688.f90 (revision 0)
@@ -0,0 +1,11 @@
+! { dg-do compile }
+! { dg-options "-O0 -fipa-reference" }
+
+ subroutine sub
+ type :: a
+ integer :: i = 42
+ end type a
+ type(a), target :: dt(2)
+ integer, pointer :: ip(:)
+ ip => dt%i
+ end subroutine