https://bugs.kde.org/show_bug.cgi?id=411323

            Bug ID: 411323
           Summary: kdevelop-5.4.1/plugins/clang/duchain/unknowndeclaratio
                    nproblem.cpp:144:44: warning: Possible dereference of
                    an invalid iterator: x
           Product: kdevelop
           Version: 5.4.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: dcb...@hotmail.com
  Target Milestone: ---

SUMMARY

Source code is

    for(auto x = a.begin(), y = b.begin(); *x == *y && x != a.end() && y !=
b.end() ; ++x, ++y ) {

Maybe better code

    for(auto x = a.begin(), y = b.begin(); x != a.end() && y != b.end() && *x
== *y; ++x, ++y ) {

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to