While looking for memory tag in vect_analyze_data_refs, data_reference is overwritten by temporary.
Created attachment 7580 [details] Testcase
Confirmed.
Fixed in http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01747.html
Subject: Bug 18607 CVSROOT: /cvs/gcc Module name: gcc Changes by: dorit@gcc.gnu.org 2004-11-30 14:40:38 Modified files: gcc : ChangeLog tree-vectorizer.c Added files: gcc/testsuite/gcc.dg/vect: vect-89.c Log message: 2004-11-30 Ira Rosen <irar@il.ibm.com> PR tree-opt/18607 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary variable for data_reference when looking for memtag. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6646&r2=2.6647 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vectorizer.c.diff?cvsroot=gcc&r1=2.44&r2=2.45 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/vect/vect-89.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
Subject: Bug 18607 CVSROOT: /cvs/gcc Module name: gcc Changes by: dorit@gcc.gnu.org 2004-11-30 14:54:24 Modified files: gcc/testsuite : ChangeLog Log message: PR tree-opt/18607 * gcc.dg/vect/vect-89.c: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4688&r2=1.4689
Fixed.