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]

Re: [PATCH, PR58942, Cilk+] Fix ICE when pointer is used in array notation


On Sun, May 25, 2014 at 09:31:50AM +0000, Zamyatin, Igor wrote:
> +/* { dg-do compile } */
> +/* { dg-options "-fcilkplus" } */
> +
> +int foo (int*p, int i)
> +{
> +  return __sec_reduce_max_ind(p[1:i]);
> +}

BTW, similar testcase seems to segfault too:

int foo (int*p, int *i)
{
  return __sec_reduce_max_ind(p[1:i]);
}

	Marek


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