[llvm-bugs] [Bug 46775] New: lldb needs to handle auto

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 19 06:48:58 PDT 2020


            Bug ID: 46775
           Summary: lldb needs to handle auto
           Product: lldb
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: trass3r at gmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

When compiling clangd with clang it generates the following debug info:

Abbrev Number: 166 (DW_TAG_unspecified_type)
DW_AT_name        : (indexed string: 0xb0c6): auto

This is not handled in DWARFASTParserClang::ParseTypeModifier:

  case DW_TAG_unspecified_type:
    if (attrs.name == "nullptr_t" || attrs.name == "decltype(nullptr)") {
      resolve_state = Type::ResolveState::Full;
      clang_type = m_ast.GetBasicType(eBasicTypeNullPtr);
    // Fall through to base type below in case we can handle the type
    // there...

  case DW_TAG_base_type:

And due to the fallthrough this results in the following (somewhat misleading)
error message:
error: need to add support for DW_TAG_base_type 'auto' encoded with DW_ATE =
0x0, bit_size = 0

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200719/972466d7/attachment.html>

More information about the llvm-bugs mailing list