[llvm-bugs] [Bug 28397] New: Crash when walking the children of a type alias
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 1 16:55:54 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28397
Bug ID: 28397
Summary: Crash when walking the children of a type alias
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: dpldobrev at protonmail.com
CC: klimek at google.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
We have this simple header:
#include <string>
using data_type = typename std::aligned_storage<16, 8>::type;
When we try to parse it in MSVC mode with Visual Studio 2015 Update 3 on
Windows 7 64-bit, we get a crash with this code:
auto TA = <the type alias above as obtained while walking the tree>;
for (auto it = TypeAlias->decls_begin(); it != TypeAlias->decls_end();
++it)
{
clang::Decl* D = (*it);
D->dump();
}
Our complete code you can find at
https://github.com/mono/CppSharp/blob/master/src/CppParser/Parser.cpp .
--
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/20160701/78d1a502/attachment.html>
More information about the llvm-bugs
mailing list