PR c++/85141 - ICE with compound assignment and static member fn.
commit7447f1d7e21fbebd7ddaf9865bf05104592f3049
authorJason Merrill <jason@redhat.com>
Wed, 4 Apr 2018 16:42:39 +0000 (4 12:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 4 Apr 2018 16:42:39 +0000 (4 12:42 -0400)
treed38e68c772f18182e95d4c2f25e593959a7f2872
parent239209c4c45b16724b704e68ef8b949d806d3121
PR c++/85141 - ICE with compound assignment and static member fn.

* typeck.c (cp_build_modify_expr): Call decay_conversion for RHS of
compound assignment.

From-SVN: r259089
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/expr/assign2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash60.C