This is the mail archive of the gcc-patches@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]

PATCH: Add a testcasef for PR tree-optimization/43688


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


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