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