[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2024-01-21 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #29 from David Binderman --- (In reply to Martin Jambor from comment #28) > And is there already a bugzilla bug about these (or should I create one)? Done. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113528

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2024-01-20 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #28 from Martin Jambor --- (In reply to David Binderman from comment #27) > The original article checked gcc-10. > gcc-13 is checked in the following article: > > https://pvs-studio.com/en/blog/posts/cpp/1067/ > > I suspect it would

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2024-01-20 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #27 from David Binderman --- The original article checked gcc-10. gcc-13 is checked in the following article: https://pvs-studio.com/en/blog/posts/cpp/1067/ I suspect it would be most unwise if any release of gcc after 13 introduce

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2024-01-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2024-01-17 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Martin Jambor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-05-11 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Martin Liška changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-05-08 Thread leo at yuriev dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #24 from Leo Yuriev --- So, seems that all done and this issue should be closed?

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-23 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #23 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #12) > (In reply to Andrew Stubbs from comment #11) > > (In reply to Jakub Jelinek from comment #10) > > > or if instead we should drop the "status = " for the cases w

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-23 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #22 from CVS Commits --- The master branch has been updated by Andrew Stubbs : https://gcc.gnu.org/g:966de09be91c639d66d252c9ae6ab8da5ebfca18 commit r10-7912-g966de09be91c639d66d252c9ae6ab8da5ebfca18 Author: Andrew Stubbs Date: M

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-21 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #21 from CVS Commits --- The master branch has been updated by Frederik Harwath : https://gcc.gnu.org/g:15256c8a8ac6573d250506c40dbe13082186c2aa commit r10-7845-g15256c8a8ac6573d250506c40dbe13082186c2aa Author: Frederik Harwath Dat

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-20 Thread tschwinge at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Thomas Schwinge changed: What|Removed |Added CC||frederik at gcc dot gnu.org,

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-20 Thread leo at yuriev dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #19 from Leo Yuriev --- (In reply to CVS Commits from comment #4) > The master branch has been updated by Richard Biener : > > https://gcc.gnu.org/g:a64468a3034dd8e2d0794a5be84b8da544ffe2c3 > > commit r10-7770-ga64468a3034dd8e2d0794

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-20 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #18 from Martin Liška --- The code in ipa_polymorphic_call_context::set_by_invariant seems fishy. It's there since the beginning: r5-3634-g6f8091fc3ed9d3cfa7a6dee7e9f9a34eb4308b2a. @Honza: Can you please take a look?

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #17 from Jonathan Wakely --- (In reply to David Binderman from comment #14) > There is also this one from cppcheck: > > trunk.git/libstdc++-v3/include/debug/formatter.h:302:40: warning: Redundant > assignment of '_M_variant._M_iterat

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-19 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #16 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:a2c0fa35d0dc8912b0c1a658234221de61e60840 commit r10-7806-ga2c0fa35d0dc8912b0c1a658234221de61e60840 Author: Jonathan Wakely Date:

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #15

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #14 from David Binderman --- There is also this one from cppcheck: trunk.git/libstdc++-v3/include/debug/formatter.h:302:40: warning: Redundant assignment of '_M_variant._M_iterator._M_constness' to itself. [selfAssignment] Source co

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #13 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2e3897490e0f99b22a2813cfb34d59a1ea71ff68 commit r10-7774-g2e3897490e0f99b22a2813cfb34d59a1ea71ff68 Author: Jakub Jelinek Date: F

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #12 from Jakub Jelinek --- (In reply to Andrew Stubbs from comment #11) > (In reply to Jakub Jelinek from comment #10) > > or if instead we should drop the "status = " for the cases where nothing > > checks it. Andrew? > > I think ch

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread ams at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #11 from Andrew Stubbs --- (In reply to Jakub Jelinek from comment #10) > or if instead we should drop the "status = " for the cases where nothing > checks it. Andrew? I think checking the status is probably good practice, even thoug

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Jakub Jelinek changed: What|Removed |Added CC||ams at gcc dot gnu.org --- Comment #10 f

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #9 from Jakub Jelinek --- Comment on attachment 48299 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48299 sorted list of redundant assignments /* If there were any declarations or structure tags in that level, or if thi

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #8 from David Binderman --- Created attachment 48299 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48299&action=edit sorted list of redundant assignments

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #7 from Jakub Jelinek --- (In reply to David Binderman from comment #6) > (In reply to Jakub Jelinek from comment #5) > > We should for GCC11 discuss if we want to implement some of these checks, > > either in -fanalyzer, or as normal

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a64468a3034dd8e2d0794a5be84b8da544ffe2c3 commit r10-7770-ga64468a3034dd8e2d0794a5be84b8da544ffe2c3 Author: Richard Biener Date:

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #2 from Richard Biener --- Created attachment 48298 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48298&action=edit parts I am testing

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 --- Comment #1 from Richard Biener --- Picking those obvious to me at the moment.

[Bug other/94629] 10 issues located by the PVS-studio static analyzer

2020-04-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94629 Martin Liška changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,