[llvm-bugs] [Bug 32383] New: Assertion `PartiallyIncomplete || ElementSize == (Ty->getSizeInBits() / 8)' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 22 16:11:45 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32383

            Bug ID: 32383
           Summary: Assertion `PartiallyIncomplete || ElementSize ==
                    (Ty->getSizeInBits() / 8)' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org

$ cat 1.cc
# 1 "" 3
typedef union {
}

YYSTYPE;
void fn1() { YYSTYPE a[1]; }
$ cat 2.cc
union YYSTYPE {
  YYSTYPE *yylval_r;
} a;
$ clang-cl /Zi -flto -c 1.cc
$ clang-cl /Zi -flto -c 2.cc
$ llvm-link -o - 2.obj 1.obj | llc -o /dev/null
[...] llvm::codeview::TypeIndex llvm::CodeViewDebug::lowerTypeArray(const
llvm::DICompositeType *): Assertion `PartiallyIncomplete || ElementSize ==
(Ty->getSizeInBits() / 8)' failed.

-- 
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/20170322/9978a74a/attachment.html>


More information about the llvm-bugs mailing list