This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix C/43211 ICE with incomplete type in function argument


The problem here is that we create a function type which has an
error_mark_node as one of the function arguments which confuse the
gimplifier.  The fix is simple, we should just have a variable length
function which solves this issue and allows for the middle-end to work
without any more problems.

OK?  Bootstrapped and tested on x86_64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

* c-decl.c (grokparms): Set arg_types to NULL_TREE if there was an error.

* gcc.dg/pr43211.c: New test.
* gcc.dg/pr18809-1.c: Don't expect an error when calling foo.

Attachment: fixpr43211.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]