re PR c/71685 (Segmentation fault in gcc when compiling the attached file.)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Jun 2016 22:30:04 +0000 (00:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Jun 2016 22:30:04 +0000 (00:30 +0200)
commit152ef731950c9b35e6bab40b30d60027bb996254
tree9ddf6cd1a227be492c1b734b48f3406bb3928f71
parent4378d117ec35f58d5a552eafcb91c91550e6566e
re PR c/71685 (Segmentation fault in gcc when compiling the attached file.)

PR c/71685
* c-typeck.c (c_build_qualified_type): Don't clear
C_TYPE_INCOMPLETE_VARS for the main variant.

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

From-SVN: r237830
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71685.c [new file with mode: 0644]