Re: [PATCH] c++: Fix wrong no post-decrement operator error in template [PR94190]

2020-03-16 Thread Jason Merrill via Gcc-patches
On 3/16/20 10:57 AM, Marek Polacek wrote: Now that convert_like creates an IMPLICIT_CONV_EXPR when it converts something that involves a class in a template, we must be prepared to handle it. In this test, we have a class S and we're converting it to long int& using a user-defined conversion sin

[PATCH] c++: Fix wrong no post-decrement operator error in template [PR94190]

2020-03-16 Thread Marek Polacek via Gcc-patches
Now that convert_like creates an IMPLICIT_CONV_EXPR when it converts something that involves a class in a template, we must be prepared to handle it. In this test, we have a class S and we're converting it to long int& using a user-defined conversion since we're performing -- on it. So cp_build_u