[Bug tree-optimization/96003] Maybe a false positive for -Werror=nonnull

2020-07-09 Thread slyfox at inbox dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at inbox dot ru --- Comment

[Bug tree-optimization/96003] Maybe a false positive for -Werror=nonnull

2020-06-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #2 from Martin Liška --- It happens all much sooner (in FE): $ cat a-folis.ii.004t.original ;; Function AppSelectionModel::AppSelectionModel() (null) ;; enabled by -tree-original { < ((struct Selection *) operator new (2)) >

[Bug tree-optimization/96003] Maybe a false positive for -Werror=nonnull

2020-06-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96003 --- Comment #1 from Jakub Jelinek --- static_cast expanded into ptr ? cast(ptr) : NULL and maybe jump threading threading that into a NULL->release (); separate path?