[Bug c++/85963] [8/9 Regression] false positive "set but not used" warning [-Wunused-but-set-variable]
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 11 22:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85963
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jun 11 22:02:31 2018
New Revision: 261466
URL: https://gcc.gnu.org/viewcvs?rev=261466&root=gcc&view=rev
Log:
PR c++/85963 - -Wunused-but-set with ?: in template.
* pt.c (tsubst_copy_and_build) [COND_EXPR]: Call mark_rvalue_use.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/Wunused-var-34.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list