https://bugs.kde.org/show_bug.cgi?id=409939
Bug ID: 409939 Summary: App crash when writing c++17 style "for loop" iterating over elements of a std::unordered_map using structured binding declaration Product: kdevelop Version: 5.3.3 Platform: Appimage OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: Code completion Assignee: kdevelop-bugs-n...@kde.org Reporter: de...@fhedin.com Target Milestone: --- Created attachment 121602 --> https://bugs.kde.org/attachment.cgi?id=121602&action=edit Desktop capture of the bug SUMMARY Observed in 5.3.3 and 5.3.2 When writing code for iterating over an unordered_map using the following syntax : for(const auto& [key,val] : map) {} the software crashes (not always) usually when typing the "] : map" section of the line STEPS TO REPRODUCE 1. Interactively try to write something like "for(const auto& [key,val] : map)" in a file ; in my case it was in a header file part of a c++ project with the parser set to std=c++1z. An attached video illustrates the problem. OBSERVED RESULT App may crash, on reload the file is usually properly recovered ; seems to come from the code completion feature, but not 100 sure. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux (x86_64) release 4.15.0-54-generic KDE Frameworks Version: KDE Frameworks 5.54.0 Qt Version: Qt 5.9.8 (built against 5.9.8) ADDITIONAL INFORMATION See the attached video. -- You are receiving this mail because: You are watching all bug changes.