On 04/29/2015 12:51 PM, Marek Polacek wrote:
This patch cleans up c_incomplete_type_error a bit: today, we should prefer
using %qT over %<%s %E%> (the code is largely intact since 1992), and second,
we should print the type if we can.  The "invalid use of incomplete typedef"
error wasn't tested at all, so I'm also adding a test to exercise that code
path.

Bootstrapped/regtested on x86_64-linux, ok for trunk?

2015-04-29  Marek Polacek  <pola...@redhat.com>

        * 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.
OK.
jeff

Reply via email to