On 10/15/14 11:22, Marek Polacek wrote:
We've got a complaint that the "dereferencing pointer to incomplete
type" error is printed for all occurrences of the incomplete type,
which is too verbose.  Also it'd be nicer to print the type as well.
This patch fixes this; if we find an incomplete type, mark it with error
node, then we don't print the error message more than once.

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

2014-10-15  Marek Polacek  <pola...@redhat.com>

        PR c/63543
        * c-typeck.c (build_indirect_ref): Print the "dereferencing..."
        error only once for each type.  Print also the type.

        * gcc.dg/pr63543.c: New test.
OK.
Jeff

Reply via email to