re PR c/64778 (ICE on invalid code on x86_64-linux-gnu: tree check: expected class...
authorJakub Jelinek <jakub@redhat.com>
Mon, 26 Jan 2015 21:32:09 +0000 (22:32 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 26 Jan 2015 21:32:09 +0000 (22:32 +0100)
commitd38f7dcef3ac28aa0c405c651087938ea9d6939a
tree087e3fcc98c0b9761edb88850ff86bd2947626ca
parent4cd76837a875b2c2ef619dd44eca555d487573f6
re PR c/64778 (ICE on invalid code on x86_64-linux-gnu: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in create_tmp_from_val, at gimplify.c:491)

PR c/64778
* c-typeck.c (convert_arguments): Return -1 if there are
error_args, even if we've diagnosed too many arguments.

* gcc.dg/pr64778.c: New test.

From-SVN: r220138
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64778.c [new file with mode: 0644]