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

Jason Merrill jason@redhat.com
Wed Dec 13 17:41:00 GMT 2017


OK.

On Wed, Dec 13, 2017 at 5:32 AM, Paolo Carlini <paolo.carlini@oracle.com> 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_readonly_error - the rest of the function does the same, ie, doesn't try
> to proceed when complain & tf_error. I also noticed that clang appears to
> behave in the same way for this error. Tested x86_64-linux.
>
> Thanks, Paolo
>
> ////////////////////////
>



More information about the Gcc-patches mailing list