Re: C++ PATCH to Implement P0846R0, ADL and function templates [v4]

2018-11-01 Thread Marek Polacek
On Thu, Nov 01, 2018 at 04:26:34PM -0400, Jason Merrill wrote: > > @@ -16319,6 +16359,25 @@ cp_parser_template_name (cp_parser* parser, > > if (TREE_CODE (*iter) == TEMPLATE_DECL) > > found = true; > > > > + if (!found > > + && (cxx_dialect > cxx17) > > + && !

Re: C++ PATCH to Implement P0846R0, ADL and function templates [v3]

2018-11-01 Thread Jason Merrill
On Thu, Nov 1, 2018 at 3:36 PM Marek Polacek wrote: > On Thu, Nov 01, 2018 at 12:15:48PM -0400, Jason Merrill wrote: > > On 10/31/18 6:45 PM, Marek Polacek wrote: > > > On Mon, Oct 29, 2018 at 05:59:13PM -0400, Jason Merrill wrote: > > > > On 10/28/18 3:56 PM, Marek Polacek wrote: > > > > > This p

Re: C++ PATCH to Implement P0846R0, ADL and function templates [v3]

2018-11-01 Thread Marek Polacek
On Thu, Nov 01, 2018 at 03:36:04PM -0400, Marek Polacek wrote: > this hunk triggered an assert in tsubst_copy (just one testcase), but when > I moved it, everything seemed to work well. *removed*

Re: C++ PATCH to Implement P0846R0, ADL and function templates [v3]

2018-11-01 Thread Marek Polacek
On Thu, Nov 01, 2018 at 12:15:48PM -0400, Jason Merrill wrote: > On 10/31/18 6:45 PM, Marek Polacek wrote: > > On Mon, Oct 29, 2018 at 05:59:13PM -0400, Jason Merrill wrote: > > > On 10/28/18 3:56 PM, Marek Polacek wrote: > > > > This patch implements P0846R0: ADL and Function Templates that are no

Re: C++ PATCH to Implement P0846R0, ADL and function templates [v2]

2018-11-01 Thread Jason Merrill
On 10/31/18 6:45 PM, Marek Polacek wrote: On Mon, Oct 29, 2018 at 05:59:13PM -0400, Jason Merrill wrote: On 10/28/18 3:56 PM, Marek Polacek wrote: This patch implements P0846R0: ADL and Function Templates that are not Visible

Re: C++ PATCH to Implement P0846R0, ADL and function templates [v2]

2018-10-31 Thread Marek Polacek
On Mon, Oct 29, 2018 at 05:59:13PM -0400, Jason Merrill wrote: > On 10/28/18 3:56 PM, Marek Polacek wrote: > > This patch implements P0846R0: ADL and Function Templates that are not > > Visible > > > > whereby a name for which

Re: C++ PATCH to Implement P0846R0, ADL and function templates

2018-10-29 Thread Jason Merrill
On 10/28/18 3:56 PM, Marek Polacek wrote: This patch implements P0846R0: ADL and Function Templates that are not Visible whereby a name for which a normal lookup produces either no result or finds one or more functions and tha

C++ PATCH to Implement P0846R0, ADL and function templates

2018-10-28 Thread Marek Polacek
This patch implements P0846R0: ADL and Function Templates that are not Visible whereby a name for which a normal lookup produces either no result or finds one or more functions and that is followed by a "<" would be treated as i