re PR c++/80297 (Compiler time crash: type mismatch in binary expression)
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Apr 2017 19:14:47 +0000 (21:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Apr 2017 19:14:47 +0000 (21:14 +0200)
commite1201dff2f7404ab263a8e75e97e4c0ad72c7e72
tree5b0e3a74776f991a8582b6f87c568a15f819c192
parentd16e2ddd2666efed093ce826228c786715823cb4
re PR c++/80297 (Compiler time crash: type mismatch in binary expression)

PR c++/80297
* genmatch.c (capture::gen_transform): For GENERIC unshare_expr
captures used multiple times, except for the last use.
* generic-match-head.c: Include gimplify.h.

* g++.dg/torture/pr80297.C: New test.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r246693
gcc/ChangeLog
gcc/generic-match-head.c
gcc/genmatch.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr80297.C [new file with mode: 0644]