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: unassignedclangb...@nondot.org
          Reporter: emi...@crisal.io
                CC: kli...@google.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to