re PR debug/69518 (Flag -g causes "error: type variant has different TYPE_VFIELD")
commit3a5d2ba4fc106dd53470c5cc52c8262e36e905d2
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Jan 2016 20:37:25 +0000 (29 21:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Jan 2016 20:37:25 +0000 (29 21:37 +0100)
tree4367b9872f4f3bbdbb24397059002c623515eb61
parentc661a43de31bda50ad0c86985c3e17524ed237c0
re PR debug/69518 (Flag -g causes "error: type variant has different TYPE_VFIELD")

PR debug/69518
* c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
all type variants, not just TYPE_MAIN_VARIANT.

* gcc.dg/torture/pr69518.c: New test.

From-SVN: r232998
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr69518.c [new file with mode: 0644]