re PR c/63543 (incomplete type error should suppress duplicates)
authorMarek Polacek <polacek@redhat.com>
Fri, 17 Oct 2014 18:53:35 +0000 (18:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 17 Oct 2014 18:53:35 +0000 (18:53 +0000)
commitd9b7be2ebd0cf4652590c2db4313c8435a9a66a9
tree5864967c12d70d6e72ca16b0a2535367e7f5778b
parentf406ae1fd66cbef7528139d813049d606973b4d2
re PR c/63543 (incomplete type error should suppress duplicates)

PR c/63543
* c-tree.h (C_TYPE_ERROR_REPORTED): Define.
* c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
error multiple times.  Print the type.

* gcc.dg/pr63543.c: New test.
* gcc.dg/array-8.c: Remove dg-error.
* gcc.dg/pr48552-1.c: Remove and adjust dg-error.
* gcc.dg/pr48552-2.c: Likewise.

From-SVN: r216414
gcc/c/ChangeLog
gcc/c/c-tree.h
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-8.c
gcc/testsuite/gcc.dg/pr48552-1.c
gcc/testsuite/gcc.dg/pr48552-2.c
gcc/testsuite/gcc.dg/pr63543.c [new file with mode: 0644]