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

            Bug ID: 474743
           Summary: Crash on C++11-style struct initializer on template
                    class?
    Classification: Applications
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: daniel.san...@pobox.com
  Target Milestone: ---

Application: kdevelop (5.10.221200 (22.12.0))
 (Compiled from sources)
Qt Version: 5.15.8
Frameworks Version: 5.102.0
Operating System: Linux 5.15.80-gentoo x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
I was running with `KDEV_CLANG_DISPLAY_DIAGS=1 CLEAR_DUCHAIN_DIR=1 kdevelop`,
but I sadly saw no output prior to the crash. I was about to add a template
class and it crashed after I typed `template<typename T>` and which applied to
the class below, as I hadn't had a chance to type the new class yet.

struct field : public blobmsg_policy {
    ptrdiff_t off;
    field(const char *name, enum blobmsg_type type, ptrdiff_t off)
        : blobmsg_policy{.name = name, .type = type}
        , off(off)
    {}
    virtual ~field();

    int read(void *dest, struct blob_attr *tb) const;
    int write(const void *src, struct blob_attr *tb)  const;
};

The crash can be reproduced every time.

-- Backtrace (Reduced):
#6  0x00007fc25e4f68ed in clang::ASTContext::getTypeInfoImpl(clang::Type
const*) const (this=0x7fc1fd4306c0, T=<optimized out>) at
/usr/src/debug/sys-devel/clang-15.0.7-r1/clang/lib/AST/ASTContext.cpp:2394
#7  0x00007fc25e4ebab2 in clang::ASTContext::getTypeInfo(clang::Type const*)
const (this=0x7fc1fd4306c0, T=<optimized out>) at
/usr/src/debug/sys-devel/clang-15.0.7-r1/clang/lib/AST/ASTContext.cpp:1934
#8  0x00007fc25e4f7f0b in clang::ASTContext::getTypeInfoInChars(clang::Type
const*) const (T=0x7fc1fd3b4440, this=0x7fc1fd4306c0) at
/usr/src/debug/sys-devel/clang-15.0.7-r1/clang/lib/AST/ASTContext.cpp:1886
#9  clang::ASTContext::getTypeInfoInChars(clang::Type const*) const
(this=0x7fc1fd4306c0, T=0x7fc1fd3b4440) at
/usr/src/debug/sys-devel/clang-15.0.7-r1/clang/lib/AST/ASTContext.cpp:1883
#10 0x00007fc25e4f7e82 in
clang::ASTContext::getTypeInfoInChars(clang::QualType) const (T=...,
this=0x7fc1fd4306c0) at
/usr/src/debug/sys-devel/clang-15.0.7-r1/clang/lib/AST/ASTContext.cpp:1892


Reported using DrKonqi

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

Reply via email to