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

Craig Tenenbaum <zarathustra.zoroas...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zarathustra.zoroaster@gmail
                   |                            |.com

--- Comment #2 from Craig Tenenbaum <zarathustra.zoroas...@gmail.com> ---
Odd, I've seen this exact bug before and it pertains to the use of C++17
structured bindings. Looking at the backtrace itself, you can even see calls
into the structured binding machinery at #7 with the call to
`clang::ASTDeclReader::VisitDecompositionDecl(clang::DecompositionDecl*)`;
"decomposition declaration" was just a prior name for this feature.
Specifically, the cause of the segfault is an attempt to dereference a nullptr,
which results from some data-structure (involved in the parsing of structured
bindings), somewhere, not being initialized properly when the parser isn't in
C++17 mode. I never narrowed the specific cause because fixes to CMake support
obviated the issue for me, but I could look back into it if requested.

That said, I'm not sure what's causing this specific failure; some cursory
investigation into digikam's sources uncovers nothing in CMake instructing the
use of C++17 features at compile-time, and moreover, trying some grep patterns
which should match a structured binding declaration come up empty, so either
something is going very wrong the parser, or is it possible you have some local
changes to the code using structured bindings, or additional projects open?

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

Reply via email to