Re: [PATCH] c++: ICE when mangling operator name [PR98545]

2021-01-21 Thread Jason Merrill via Gcc-patches
On 1/19/21 5:38 PM, Marek Polacek wrote: On Tue, Jan 19, 2021 at 03:47:47PM -0500, Jason Merrill via Gcc-patches wrote: On 1/13/21 6:39 PM, Marek Polacek wrote: r11-6301 added some asserts in mangle.c, and now we trip over one of them. In particular, it's the one asserting that we didn't get I

Re: [PATCH] c++: ICE when mangling operator name [PR98545]

2021-01-19 Thread Marek Polacek via Gcc-patches
On Tue, Jan 19, 2021 at 03:47:47PM -0500, Jason Merrill via Gcc-patches wrote: > On 1/13/21 6:39 PM, Marek Polacek wrote: > > r11-6301 added some asserts in mangle.c, and now we trip over one of > > them. In particular, it's the one asserting that we didn't get > > IDENTIFIER_ANY_OP_P when manglin

Re: [PATCH] c++: ICE when mangling operator name [PR98545]

2021-01-19 Thread Jason Merrill via Gcc-patches
On 1/13/21 6:39 PM, Marek Polacek wrote: r11-6301 added some asserts in mangle.c, and now we trip over one of them. In particular, it's the one asserting that we didn't get IDENTIFIER_ANY_OP_P when mangling an expression with a dependent name. As this testcase shows, it's possible to get that,

[PATCH] c++: ICE when mangling operator name [PR98545]

2021-01-13 Thread Marek Polacek via Gcc-patches
r11-6301 added some asserts in mangle.c, and now we trip over one of them. In particular, it's the one asserting that we didn't get IDENTIFIER_ANY_OP_P when mangling an expression with a dependent name. As this testcase shows, it's possible to get that, so turn the assert into an if and write "on