re PR c++/79377 (ICE with increment operator in -fpermissive mode)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Feb 2017 20:05:09 +0000 (21:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Feb 2017 20:05:09 +0000 (21:05 +0100)
commite8b0383c1324a80e554e9e0401dc5830c700bb0e
treefd703b0324b6a08e36660618e2b6bbd5bb8e8108
parenta5e8cbd150d7e7200d54e2e1e125161139e2c7b8
re PR c++/79377 (ICE with increment operator in -fpermissive mode)

PR c++/79377
* tree.c (build_min_non_dep_op_overload): For POST{INC,DEC}REMENT_EXPR
allow one fewer than expected arguments if flag_permissive.

* g++.dg/lookup/pr79377.C: New test.

From-SVN: r245219
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr79377.C [new file with mode: 0644]