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] Fix for PR c/57490



> -----Original Message-----
> From: Jason Merrill [mailto:jason@redhat.com]
> Sent: Monday, August 19, 2013 9:51 AM
> To: Iyer, Balaji V; Rainer Orth
> Cc: Jakub Jelinek; gcc-patches@gcc.gnu.org; Marek Polacek
> (polacek@redhat.com)
> Subject: Re: [PATCH] Fix for PR c/57490
> 
> On 08/18/2013 07:42 PM, Iyer, Balaji V wrote:
> >> On 08/16/2013 02:13 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.  */
> >>>>
> >> Ah, then the comment should say "...is the element type of the array...".
> 
> Hmm, now it occurs to me to wonder why the CALL_EXPR doesn't already have
> the appropriate type?
> 

Well, it is described in cilkplus.def. The return type of it changes based on the array that is passed in. So, it is given a fake type. Thus, we need to fix it up here.


> Jason
> 


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