* except.c (check_noexcept_r): Assert that fn is POINTER_TYPE_P.
From-SVN: r226947
This commit is contained in:
parent
4e1492b7cd
commit
5c563482ac
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-08-17 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* except.c (check_noexcept_r): Assert that fn is POINTER_TYPE_P.
|
||||
|
||||
2015-08-14 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/65974
|
||||
|
|
|
@ -1155,7 +1155,9 @@ check_noexcept_r (tree *tp, int * /*walk_subtrees*/, void * /*data*/)
|
|||
We could use TREE_NOTHROW (t) for !TREE_PUBLIC fns, though... */
|
||||
tree fn = (code == AGGR_INIT_EXPR
|
||||
? AGGR_INIT_EXPR_FN (t) : CALL_EXPR_FN (t));
|
||||
tree type = TREE_TYPE (TREE_TYPE (fn));
|
||||
tree type = TREE_TYPE (fn);
|
||||
gcc_assert (POINTER_TYPE_P (type));
|
||||
type = TREE_TYPE (type);
|
||||
|
||||
STRIP_NOPS (fn);
|
||||
if (TREE_CODE (fn) == ADDR_EXPR)
|
||||
|
|
Loading…
Add table
Reference in a new issue