[Bug c++/70295] [6 Regression] bogus -Wnonnull-compare for "dynamic_cast<const FuSelection *>(this) != nullptr"

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 18 18:08:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70295

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Unfortunately that patch regresses the c-c++-common/nonnull-1.c testcase.
The problem is that finish_parenthesized_expr which sets TREE_NO_WARNING on all
expressions.  Will see if setting it solely on MODIFY_EXPRs isn't enough.


More information about the Gcc-bugs mailing list