This is the mail archive of the gcc-bugs@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]

[Bug c++/81061] [7/8 Regression] ICE modifying read-only variable


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Dec 13 20:29:11 2017
New Revision: 255613

URL: https://gcc.gnu.org/viewcvs?rev=255613&root=gcc&view=rev
Log:
/cp
2017-12-13  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81061
        * typeck.c (cp_build_modify_expr): Upon cxx_readonly_error
        immediately return error_mark_node.

/testsuite
2017-12-13  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81061
        * g++.dg/other/const5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/other/const5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

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