Re: [C++ Patch] Improve grokdeclarator error

2019-10-03 Thread Jason Merrill
On Mon, Sep 30, 2019 at 3:25 PM Paolo Carlini wrote: > > On 30/09/19 20:46, Jason Merrill wrote: > > On Mon, Sep 30, 2019 at 6:54 AM Paolo Carlini > > wrote: > >> On 28/09/19 04:05, Jason Merrill wrote: > >>> On 9/26/19 3:39 PM, Paolo Carlini wrote: > +template void foo( // { dg-error "15:

Re: [C++ Patch] Improve grokdeclarator error

2019-09-30 Thread Paolo Carlini
Hi, On 30/09/19 20:46, Jason Merrill wrote: On Mon, Sep 30, 2019 at 6:54 AM Paolo Carlini wrote: On 28/09/19 04:05, Jason Merrill wrote: On 9/26/19 3:39 PM, Paolo Carlini wrote: +template void foo( // { dg-error "15:template-id .foo. used as a declarator" } That's a strange diagnostic mess

Re: [C++ Patch] Improve grokdeclarator error

2019-09-30 Thread Jason Merrill
On Mon, Sep 30, 2019 at 6:54 AM Paolo Carlini wrote: > > On 28/09/19 04:05, Jason Merrill wrote: > > On 9/26/19 3:39 PM, Paolo Carlini wrote: > >> +template void foo( // { dg-error "15:template-id .foo. > >> used as a declarator" } > > > > That's a strange diagnostic message; there's nothing wron

Re: [C++ Patch] Improve grokdeclarator error

2019-09-30 Thread Paolo Carlini
Hi, On 28/09/19 04:05, Jason Merrill wrote: On 9/26/19 3:39 PM, Paolo Carlini wrote: +template void foo(  // { dg-error "15:template-id .foo. used as a declarator" } That's a strange diagnostic message; there's nothing wrong with using a template-id as a declarator.  Why are we even calling

Re: [C++ Patch] Improve grokdeclarator error

2019-09-27 Thread Jason Merrill
On 9/26/19 3:39 PM, Paolo Carlini wrote: +template void foo( // { dg-error "15:template-id .foo. used as a declarator" } That's a strange diagnostic message; there's nothing wrong with using a template-id as a declarator. Why are we even calling grokdeclarator when we hit EOF in the middle