PR c++/88120 - ICE when calling save_expr in a template.
authorMarek Polacek <polacek@redhat.com>
Mon, 26 Nov 2018 23:26:40 +0000 (23:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Nov 2018 23:26:40 +0000 (23:26 +0000)
commit2426ee774baaea8d4a447229830ac0f31c69ab25
tree8ff280cb726ebe2a8d9b76fcf21cf63e0a51daa4
parent80de5ef9c1070e6dcbf8fd5cae93b06edc36d08a
PR c++/88120 - ICE when calling save_expr in a template.

* typeck.c (cp_build_binary_op): Call cp_save_expr instead of
save_expr.

* g++.dg/cpp0x/pr88120.C: New test.

From-SVN: r266492
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr88120.C [new file with mode: 0644]