]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR bootstrap/43699 ("variable set but not used" error during bootstrap)
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Apr 2010 13:27:07 +0000 (15:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Apr 2010 13:27:07 +0000 (15:27 +0200)
commitfa8351f8d807ec9cde27984171670438295bc7b4
treece69281cf285db8a82e42170e80479229135cc7d
parentf101882ada10af2b1b682e56f7a52c248ed6eef5
re PR bootstrap/43699 ("variable set but not used" error during bootstrap)

PR bootstrap/43699
* c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
for exprs satisfying handled_component_p.

* gcc.dg/Wunused-var-7.c: New test.

From-SVN: r158224
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wunused-var-7.c [new file with mode: 0644]