[Bug c++/82609] missing -Warrray-bounds on an argument in parentheses
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 15 21:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82609
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The problem is caused by the finish_parenthesized_expr() function in
cp/semantics.c setting the TREE_NO_WARNING bit, as mentioned in bug 74762,
comment 1 (see the snippet from that file copied below). So this is indeed a
dupe of that bug.
/* Finish a parenthesized expression EXPR. */
cp_expr
finish_parenthesized_expr (cp_expr expr)
{
if (EXPR_P (expr))
/* This inhibits warnings in c_common_truthvalue_conversion. */
TREE_NO_WARNING (expr) = 1;
*** This bug has been marked as a duplicate of bug 74762 ***
More information about the Gcc-bugs
mailing list