PR c++/91819 - ICE with operator++ and enum.
authorMarek Polacek <polacek@redhat.com>
Sun, 22 Sep 2019 12:35:00 +0000 (12:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 22 Sep 2019 12:35:00 +0000 (12:35 +0000)
commit0968003dd08a9e9f83bee955bbdc259a781f044f
tree77adb1c8c15a739d0082bba67a78d40d0a7cd44c
parentdcb786e59eb7ec2ad32357673f138bd5d9242ea9
PR c++/91819 - ICE with operator++ and enum.

* call.c (build_new_op_1): Set arg2_type.

* g++.dg/other/operator4.C: New test.

From-SVN: r276027
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/operator4.C [new file with mode: 0644]