This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

////////////////////////

Attachment: CL_81061
Description: Text document

Attachment: patch_81061
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]