[llvm-bugs] [Bug 40813] New: Crash when trying to get layout information of undeductible auto type
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 22 00:38:20 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: emilio at crisal.io
CC: klimek at google.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190222/573a2468/attachment-0001.html>
More information about the llvm-bugs
mailing list