]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/64768 (internal compiler error: tree check: expected tree that contains ...
authorMarek Polacek <polacek@redhat.com>
Sat, 14 Feb 2015 11:25:19 +0000 (11:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 14 Feb 2015 11:25:19 +0000 (11:25 +0000)
commit065d214ce4129853330cb0c992b981830c950909
tree577ba5fb4fedac8f082c3b7d52e8e3fe27c2e462
parent952e216e5a092b5072894b3889f18bc5f76dcf72
re PR c/64768 (internal compiler error: tree check: expected tree that contains ‘decl with RTL’ structure, have ‘field_decl’ in set_decl_rtl, at emit-rtl.c:1274)

PR c/64768
* c-decl.c (grokdeclarator): Set the range of a flexible array member
declared through a typedef name.

* gcc.dg/array-11.c: New test.
* gcc.dg/array-12.c: New test.
* gcc.dg/array-13.c: New test.
* gcc.dg/array-14.c: New test.
* gcc.dg/c99-flex-array-typedef-1.c: New test.
* gcc.dg/c99-flex-array-typedef-2.c: New test.
* gcc.dg/c99-flex-array-typedef-3.c: New test.
* gcc.dg/c99-flex-array-typedef-5.c: New test.
* gcc.dg/c99-flex-array-typedef-7.c: New test.
* gcc.dg/c99-flex-array-typedef-8.c: New test.

From-SVN: r220708
13 files changed:
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/array-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/array-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/array-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-flex-array-typedef-8.c [new file with mode: 0644]