> -----Original Message-----
> From: Jason Merrill [mailto:ja...@redhat.com]
> Sent: Friday, August 16, 2013 2:08 PM
> To: Iyer, Balaji V; Rainer Orth
> Cc: Jakub Jelinek; gcc-patches@gcc.gnu.org; Marek Polacek
> (pola...@redhat.com)
> Subject: Re: [PATCH] Fix for PR c/57490
> 
> On 08/12/2013 01:16 PM, Iyer, Balaji V wrote:
> > +  /* If it is a built-in array notation function, then the return type of
> > +     the function is the type of the array passed in as array notation.  */
> 
> How can the function return an array?
> 

I guess I worded the comment poorly. Well, what I was going to say is this:

float x,  A[10];
x = __sec_reduce_add (A[:]); // The sec_reduce_add function's return type is 
the type of A[] which is float.

int y, B[10];
y = __sec_reduce_add (B[:]); // ...the return type of __sec_reduce_add function 
is same as B[] which is int


Thanks,

Balaji V. Iyer.

> Jason

Reply via email to