diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-04-26 13:36:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-04-26 13:36:23 +0200 |
commit | 3b07c79b24188241f5f76b5b08e68234b02e24e1 (patch) | |
tree | fbdcadf32ceb1b5620ce83ba6a0644c98fbf758b /gcc/integrate.c | |
parent | e9070e7b80412308dcdb6b5abf9cef5afdcf4f8a (diff) | |
download | gcc-3b07c79b24188241f5f76b5b08e68234b02e24e1.zip gcc-3b07c79b24188241f5f76b5b08e68234b02e24e1.tar.gz gcc-3b07c79b24188241f5f76b5b08e68234b02e24e1.tar.bz2 |
integrate.c (expand_inline_function): Check for error_mark_node in actual argument.
* integrate.c (expand_inline_function): Check for error_mark_node
in actual argument.
* gcc.dg/noncompile/20010425-1.c: New test.
From-SVN: r41587
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 1955c05..2417661 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -650,7 +650,8 @@ expand_inline_function (fndecl, parms, target, ignore, type, arg = TREE_VALUE (actual); mode = TYPE_MODE (DECL_ARG_TYPE (formal)); - if (mode != TYPE_MODE (TREE_TYPE (arg)) + if (arg == error_mark_node + || mode != TYPE_MODE (TREE_TYPE (arg)) /* If they are block mode, the types should match exactly. They don't match exactly if TREE_TYPE (FORMAL) == ERROR_MARK_NODE, which could happen if the parameter has incomplete type. */ |