aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2021-05-12 11:19:13 -0400
committerMarek Polacek <polacek@redhat.com>2021-05-12 13:06:28 -0400
commit3a2b12bc5a7da7f0c5cf2ef4879d435a02feda8d (patch)
tree2407ce65a6581f1fac2fff5020ab9d31901dd893 /libcpp
parentfa6894ec9ce25f5aff10ec176212383f5c88b1ec (diff)
downloadgcc-3a2b12bc5a7da7f0c5cf2ef4879d435a02feda8d.zip
gcc-3a2b12bc5a7da7f0c5cf2ef4879d435a02feda8d.tar.gz
gcc-3a2b12bc5a7da7f0c5cf2ef4879d435a02feda8d.tar.bz2
c++: Disable -Wint-in-bool-context in instantiations
This warning is of questionable value when it's emitted when instantiating a template, as in the following testcase. It could be silenced by writing hb(i) << 1 instead of 2 * hb(i) but that's unnecessary obfuscation. gcc/cp/ChangeLog: * pt.c (tsubst_copy_and_build): Add warn_int_in_bool_context sentinel. gcc/testsuite/ChangeLog: * g++.dg/warn/Wint-in-bool-context-2.C: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions