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

2017-12-13 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

--- Comment #3 from 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=gcc=rev
Log:
/cp
2017-12-13  Paolo Carlini  

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

/testsuite
2017-12-13  Paolo Carlini  

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

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

2017-12-13 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |paolo.carlini at oracle 
dot com

--- Comment #2 from Paolo Carlini  ---
Seems easy to avoid.

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

2017-08-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

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

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #2 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

--- Comment #3 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

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

2017-08-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.2 |7.3

--- Comment #2 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

--- Comment #3 from Richard Biener  ---
GCC 7.2 is being released, adjusting target milestone.

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

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4
   Target Milestone|--- |7.2

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

2017-06-12 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81061

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-06-12
 CC||jason at gcc dot gnu.org,
   ||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Confirmed, started with r237775.