re PR c++/80075 (ICE: "statement marked for throw, but doesn’t" with -fnon-call-excep...
authorRichard Biener <rguenther@suse.de>
Fri, 17 Mar 2017 12:48:56 +0000 (12:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 17 Mar 2017 12:48:56 +0000 (12:48 +0000)
commit12c4f7dcafc3fb469e995d283dccbb4a5945f11c
tree3a1c18ddfd849a4afa672dd26bb955d6f9e0cfa4
parent5c7d37de415fe5345c005154ea69d0d9b5a8c8d6
re PR c++/80075 (ICE: "statement marked for throw, but doesn’t" with -fnon-call-exceptions)

2017-03-17  Richard Biener  <rguenther@suse.de>

PR middle-end/80075
* tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
Properly verify the LHS before the RHS possibly claims to be
handled.
(stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
do not throw.

* g++.dg/torture/pr80075.C: New testcase.

From-SVN: r246223
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr80075.C [new file with mode: 0644]
gcc/tree-eh.c