re PR c/89211 (ICE in int_mode_for_mode, at stor-layout.c:403)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Feb 2019 09:17:55 +0000 (10:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Feb 2019 09:17:55 +0000 (10:17 +0100)
commitcfc30fd17588446c8c54c6e1e77dec2dc18ba0fb
treeb3e204b15280ca3ebbe512488f50c4bed134d09c
parent4763581763de6049c938ea7129d738d497004a06
re PR c/89211 (ICE in int_mode_for_mode, at stor-layout.c:403)

PR c/89211
* c-parser.c (c_parser_declaration_or_fndef): Don't update
DECL_ARGUMENTS of d if it has been defined already.  Use a single if
instead of 3 nested ifs.

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

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