This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2007 19:49:17 -0000
- Subject: [Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- References: <bug-33834-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from tbm at cyrius dot com 2007-10-20 19:49 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
extern double cos (double x);
extern double sin (double x);
class bend_class
{
double *s_A;
public:
void set_s_A (double s_A0)
{
s_A[0] = s_A0;
}
};
class bend_set
{
bend_class *bend_array;
public:
void set_s_A (int index, double s_A0)
{
bend_array[index].set_s_A (s_A0);
}
void compute_s (void)
{
int i, j;
double val;
double tmp[3];
for (i = 0; i < 5; ++i)
{
val = i;
for (j = 0; j < 2; ++j)
tmp[j] = cos (val);
set_s_A (i, tmp[0]);
tmp[j] = cos (val) / sin (val);
}
}
};
class internals
{
bend_set bend;
void compute_s (void);
};
void
internals::compute_s (void)
{
bend.compute_s ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33834