Re: [PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-04 Thread Jason Merrill via Gcc-patches
On 5/4/22 11:15, Marek Polacek wrote: On Tue, May 03, 2022 at 04:46:11PM -0400, Jason Merrill wrote: On 5/3/22 16:43, Jakub Jelinek wrote: On Tue, May 03, 2022 at 04:26:51PM -0400, Jason Merrill wrote: On 5/2/22 12:19, Marek Polacek wrote: This patch fixes an oversight whereby we treated >=

Re: [PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-04 Thread Marek Polacek via Gcc-patches
On Tue, May 03, 2022 at 04:46:11PM -0400, Jason Merrill wrote: > On 5/3/22 16:43, Jakub Jelinek wrote: > > On Tue, May 03, 2022 at 04:26:51PM -0400, Jason Merrill wrote: > > > On 5/2/22 12:19, Marek Polacek wrote: > > > > This patch fixes an oversight whereby we treated >= as the end of > > > > a

Re: [PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-03 Thread Jason Merrill via Gcc-patches
On 5/3/22 16:43, Jakub Jelinek wrote: On Tue, May 03, 2022 at 04:26:51PM -0400, Jason Merrill wrote: On 5/2/22 12:19, Marek Polacek wrote: This patch fixes an oversight whereby we treated >= as the end of a template argument. This causes problems in C++14, because in

Re: [PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-03 Thread Jakub Jelinek via Gcc-patches
On Tue, May 03, 2022 at 04:26:51PM -0400, Jason Merrill wrote: > On 5/2/22 12:19, Marek Polacek wrote: > > This patch fixes an oversight whereby we treated >= as the end of > > a template argument. This causes problems in C++14, because in > > cp_parser_template_argument we go different ways for

Re: [PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-03 Thread Jason Merrill via Gcc-patches
On 5/2/22 12:19, Marek Polacek wrote: This patch fixes an oversight whereby we treated >= as the end of a template argument. This causes problems in C++14, because in cp_parser_template_argument we go different ways for C++14 and C++17: /* It must be a non-type argument. In C++17 any

[PATCH] c++: parse error with >= in template argument list [PR105436]

2022-05-02 Thread Marek Polacek via Gcc-patches
This patch fixes an oversight whereby we treated >= as the end of a template argument. This causes problems in C++14, because in cp_parser_template_argument we go different ways for C++14 and C++17: /* It must be a non-type argument. In C++17 any constant-expression is allowed. */ if