https://bugs.kde.org/show_bug.cgi?id=418220
Bug ID: 418220 Summary: crash on libclang parsing Product: kdevelop Version: 5.5.0 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: koncek.mar...@gmail.com Target Milestone: --- Created attachment 126423 --> https://bugs.kde.org/attachment.cgi?id=126423&action=edit Source file that causes the crash Description of problem: Kdevelop crashes when parsing C++ code using libclang. Version-Release number of selected component (if applicable): kdevelop-5.5.0-1.fc31.src.rpm clang-9.0.0-1.fc31.src.rpm How reproducible: In KDevelop create an empty .cpp file and #include the attached .hpp file. KDevelop then crashes. Additional info: In my case if I have the same code directly in .cpp file it does not crash (but I have disabled background parsing, but KDevelop does parse code when switching tabs). ### imporant lines: 19-30 of the provided source file. Currently clang does not compile code that uses "auto&" as parameters. Note that i am using "auto&" as function parameters on other places within KDevelop and although it doesn't like them, most of the code is parsed anyway. The crash does not happen when: 1) changing the auto& parameter for a proper template typename parameter as in: template<typename Self> static auto static_find(Self& self, const Key_type& key) 2) replacing the structured binding for a single variable initialization. -- You are receiving this mail because: You are watching all bug changes.