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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to