https://bugs.llvm.org/show_bug.cgi?id=40813

            Bug ID: 40813
           Summary: Crash when trying to get layout information of
                    undeductible auto type
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

https://github.com/rust-lang-nursery/rust-bindgen crashes when ran on:

class BrowsingContext {
  auto Tie(void* aUnused) const;
};

When trying to call getSizeOf on the auto type.

LLVM asserts:

/home/emilio/src/llvm-project/clang/lib/AST/ASTContext.cpp:2052:
clang::TypeInfo clang::ASTContext::getTypeInfoImpl(const clang::Type *) const:
Assertion `!A->getDeducedType().isNull() && "cannot request the size of an
undeduced or dependent auto type"' failed.

Got a patch, just figuring out how to write a test :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to