[PR 87347] Prevent segfaults if TYPE_ARG_TYPES is NULL
authorMartin Jambor <mjambor@suse.cz>
Wed, 26 Sep 2018 11:58:18 +0000 (13:58 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 26 Sep 2018 11:58:18 +0000 (13:58 +0200)
commitce6f08888905bb217b9a4cff8a0704e240ec5c46
tree27fced792fd811917cce17da29add793504cfcf5
parent6fe0c58b9fe04b112586fe0ffecc18a24b313c50
[PR 87347] Prevent segfaults if TYPE_ARG_TYPES is NULL

2018-09-26  Martin Jambor  <mjambor@suse.cz>

PR c/87347
c/
* c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL.  Fix
        comment.

testsuite/
* gcc.dg/pr87347.c: New test.

From-SVN: r264640
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87347.c [new file with mode: 0644]