Re: C++ PATCH for c++/88184, ICE when treating name as template-name

2018-12-04 Thread Jason Merrill
OK. On Tue, Dec 4, 2018 at 12:27 PM Marek Polacek wrote: > > On Thu, Nov 29, 2018 at 04:03:50PM -0500, Jason Merrill wrote: > > On 11/29/18 1:28 PM, Marek Polacek wrote: > > > On Wed, Nov 28, 2018 at 10:34:11PM -0500, Jason Merrill wrote: > > > > On 11/28/18 10:48 AM, Marek Polacek wrote: > > > >

Re: C++ PATCH for c++/88184, ICE when treating name as template-name

2018-12-04 Thread Marek Polacek
On Thu, Nov 29, 2018 at 04:03:50PM -0500, Jason Merrill wrote: > On 11/29/18 1:28 PM, Marek Polacek wrote: > > On Wed, Nov 28, 2018 at 10:34:11PM -0500, Jason Merrill wrote: > > > On 11/28/18 10:48 AM, Marek Polacek wrote: > > > > Since P0846R0 was implemented, a name will be treated as a > > > >

Re: C++ PATCH for c++/88184, ICE when treating name as template-name

2018-11-29 Thread Jason Merrill
On 11/29/18 1:28 PM, Marek Polacek wrote: On Wed, Nov 28, 2018 at 10:34:11PM -0500, Jason Merrill wrote: On 11/28/18 10:48 AM, Marek Polacek wrote: Since P0846R0 was implemented, a name will be treated as a template-name when it is an unqualified-id followed by a < and name lookup finds either

Re: C++ PATCH for c++/88184, ICE when treating name as template-name

2018-11-29 Thread Marek Polacek
On Wed, Nov 28, 2018 at 10:34:11PM -0500, Jason Merrill wrote: > On 11/28/18 10:48 AM, Marek Polacek wrote: > > Since P0846R0 was implemented, a name will be treated as a template-name > > when > > it is an unqualified-id followed by a < and name lookup finds either one or > > more functions or fi

Re: C++ PATCH for c++/88184, ICE when treating name as template-name

2018-11-28 Thread Jason Merrill
On 11/28/18 10:48 AM, Marek Polacek wrote: Since P0846R0 was implemented, a name will be treated as a template-name when it is an unqualified-id followed by a < and name lookup finds either one or more functions or finds nothing, in order to potentially cause ADL to be performed. In this case,

C++ PATCH for c++/88184, ICE when treating name as template-name

2018-11-28 Thread Marek Polacek
Since P0846R0 was implemented, a name will be treated as a template-name when it is an unqualified-id followed by a < and name lookup finds either one or more functions or finds nothing, in order to potentially cause ADL to be performed. In this case, we had f (); where we'd found a decl for