Re: [C++ Patch] PR 81061 ("[7/8 Regression] ICE modifying read-only variable")

2017-12-13 Thread Jason Merrill
OK. On Wed, Dec 13, 2017 at 5:32 AM, Paolo Carlini wrote: > Hi, > > in this simple error recovery regression we ICE during gimplification after > sensible diagnostic about assigning to a read-only location. The problem can > be avoided by simply returning immediately error_mark_node upon > cxx_re

[C++ Patch] PR 81061 ("[7/8 Regression] ICE modifying read-only variable")

2017-12-13 Thread Paolo Carlini
Hi, in this simple error recovery regression we ICE during gimplification after sensible diagnostic about assigning to a read-only location. The problem can be avoided by simply returning immediately error_mark_node upon cxx_readonly_error - the rest of the function does the same, ie, doesn't