re PR c/72816 (ICE on x86_64-linux-gnu (tree check: expected tree that contains ...
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Aug 2016 14:50:09 +0000 (16:50 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Aug 2016 14:50:09 +0000 (16:50 +0200)
commitb95a64bb005dd197e19df5b67b98a5e5dbdb6f8b
tree19fa9cac1f94215eb1409b19dc317ccd9ae0f94b
parent68a51b68bd6c04b937bd1283279cd1203d0e4a16
re PR c/72816 (ICE on x86_64-linux-gnu (tree check: expected tree that contains ‘decl with RTL’ structure, have ‘field_decl’ in set_decl_rtl, at emit-rtl.c:1282))

PR c/72816
* c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
array member through typedef, for orig_qual_indirect == 0 clear
orig_qual_type.

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

From-SVN: r239371
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr72816.c