Re: [PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-17 Thread Jason Merrill via Gcc-patches
On 11/16/22 20:12, Marek Polacek wrote: On Wed, Nov 16, 2022 at 08:22:39AM -0500, Jason Merrill wrote: On 11/15/22 19:35, Marek Polacek wrote: On Tue, Nov 15, 2022 at 06:58:39PM -0500, Jason Merrill wrote: On 11/12/22 06:53, Marek Polacek wrote: In this PR, we are crashing because we've encou

Re: [PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-16 Thread Marek Polacek via Gcc-patches
On Wed, Nov 16, 2022 at 08:22:39AM -0500, Jason Merrill wrote: > On 11/15/22 19:35, Marek Polacek wrote: > > On Tue, Nov 15, 2022 at 06:58:39PM -0500, Jason Merrill wrote: > > > On 11/12/22 06:53, Marek Polacek wrote: > > > > In this PR, we are crashing because we've encountered a UDL where a > > >

Re: [PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-16 Thread Jason Merrill via Gcc-patches
On 11/15/22 19:35, Marek Polacek wrote: On Tue, Nov 15, 2022 at 06:58:39PM -0500, Jason Merrill wrote: On 11/12/22 06:53, Marek Polacek wrote: In this PR, we are crashing because we've encountered a UDL where a string-literal is expected. This patch makes the parser reject string and character

Re: [PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-15 Thread Marek Polacek via Gcc-patches
On Tue, Nov 15, 2022 at 06:58:39PM -0500, Jason Merrill wrote: > On 11/12/22 06:53, Marek Polacek wrote: > > In this PR, we are crashing because we've encountered a UDL where a > > string-literal is expected. This patch makes the parser reject string > > and character UDLs in all places where the

Re: [PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-15 Thread Jason Merrill via Gcc-patches
On 11/12/22 06:53, Marek Polacek wrote: In this PR, we are crashing because we've encountered a UDL where a string-literal is expected. This patch makes the parser reject string and character UDLs in all places where the grammar requires a string-literal and not a user-defined-string-literal. B

[PATCH] c++: Reject UDLs in certain contexts [PR105300]

2022-11-12 Thread Marek Polacek via Gcc-patches
In this PR, we are crashing because we've encountered a UDL where a string-literal is expected. This patch makes the parser reject string and character UDLs in all places where the grammar requires a string-literal and not a user-defined-string-literal. Bootstrapped/regtested on x86_64-pc-linux-g