c-typeck.c (c_incomplete_type_error): Refactor to use %qT.
authorMarek Polacek <polacek@redhat.com>
Thu, 30 Apr 2015 09:35:05 +0000 (09:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 30 Apr 2015 09:35:05 +0000 (09:35 +0000)
commitac9f18db1b0c465646a4aa9566528045c9e4c973
treed6bafc73f07c3c0bb3449ddd288ff6407ffd6869
parent9babc352483293e84371af273b1aa1be037cdf31
c-typeck.c (c_incomplete_type_error): Refactor to use %qT.

* c-typeck.c (c_incomplete_type_error): Refactor to use %qT.  Print
the type of a decl.

* gcc.dg/incomplete-typedef-1.c: New test.

From-SVN: r222614
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/incomplete-typedef-1.c [new file with mode: 0644]