This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]