[C++ PATCH] Avoid ICE trying to add a bogus fixit hint (PR c++/88554)

Jason Merrill jason@redhat.com
Tue Jan 8 03:37:00 GMT 2019


On 1/4/19 5:57 PM, Jakub Jelinek wrote:
> Hi!
> 
> As found by Jonathan, we shouldn't be trying to emit return *this; fixit
> hint in non-methods where this is not available (and ICEing because
> current_class_ref is NULL there).
> I've just added a testcase for Jon's patch from the PR and merged two nested
> ifs into one.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

OK.

Jason



More information about the Gcc-patches mailing list