Re: C++ PATCH for c++/91521 - wrong error with operator->

2019-08-23 Thread Marek Polacek
On Fri, Aug 23, 2019 at 04:20:47PM -0700, Jason Merrill wrote: > > 2019-08-23 Marek Polacek > > > > PR c++/91521 - wrong error with operator->. > > * decl.c (grokdeclarator): Return error_mark_node for an invalid > > trailing return type. > > OK, thanks. Thanks! Applyi

Re: C++ PATCH for c++/91521 - wrong error with operator->

2019-08-23 Thread Jason Merrill
On Fri, Aug 23, 2019 at 4:13 PM Marek Polacek wrote: > On Fri, Aug 23, 2019 at 02:24:17PM -0700, Jason Merrill wrote: > > On 8/23/19 1:37 PM, Marek Polacek wrote: > > > Since r263836 we enter the "a late-specified return type" block in > > > grokdeclarator when inner_declarator is null: > > > > >

Re: C++ PATCH for c++/91521 - wrong error with operator->

2019-08-23 Thread Marek Polacek
On Fri, Aug 23, 2019 at 02:24:17PM -0700, Jason Merrill wrote: > On 8/23/19 1:37 PM, Marek Polacek wrote: > > Since r263836 we enter the "a late-specified return type" block in > > grokdeclarator when inner_declarator is null: > > > > /* Handle a late-specified return type. */ > >

Re: C++ PATCH for c++/91521 - wrong error with operator->

2019-08-23 Thread Jason Merrill
On 8/23/19 1:37 PM, Marek Polacek wrote: Since r263836 we enter the "a late-specified return type" block in grokdeclarator when inner_declarator is null: /* Handle a late-specified return type. */ tree late_return_type = declarator->u.function.late_return_type; - if (fun

C++ PATCH for c++/91521 - wrong error with operator->

2019-08-23 Thread Marek Polacek
Since r263836 we enter the "a late-specified return type" block in grokdeclarator when inner_declarator is null: /* Handle a late-specified return type. */ tree late_return_type = declarator->u.function.late_return_type; - if (funcdecl_p) + if (funcdecl_p + /* Th