aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-08-23 17:53:18 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-08-23 17:53:18 +0200
commit09e640b34df2fd4f0413f6984194606e97191292 (patch)
tree7fbdac5f555fe09d1f934920f03823bfd1fdcfbb /gcc/builtins.c
parente2f008377225f76538d728cb16772e29091feb0f (diff)
downloadgcc-09e640b34df2fd4f0413f6984194606e97191292.zip
gcc-09e640b34df2fd4f0413f6984194606e97191292.tar.gz
gcc-09e640b34df2fd4f0413f6984194606e97191292.tar.bz2
re PR c++/50158 (invalid 'variable set but not used' warning (boolean used as an index to an array))
PR c++/50158 * typeck.c (cp_build_modify_expr): Call mark_rvalue_use on rhs if it has side-effects and needs to be preevaluated. * g++.dg/warn/Wunused-var-16.C: New test. From-SVN: r177992
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions