[llvm-bugs] [Bug 28303] New: [DebugInfo] Array of complete structure which was declared incomplete first is does not have size assigned to its debug info metadata.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jun 25 07:56:34 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28303
Bug ID: 28303
Summary: [DebugInfo] Array of complete structure which was
declared incomplete first is does not have size
assigned to its debug info metadata.
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: amjad.aboud at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
There is a bug in the front-end where an array of a structure, which was
declared as incomplete structure first, ends up not getting a size assigned to
it.
Example - t.cpp:
struct A(*p)[3];
struct A { int f; } a[3];
command: clang -g -c -S -emit-llvm -o - -x c++ -gcodeview t.cpp
!6 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, elements: !11)
!7 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !1,
line: 2, size: 32, align: 32, elements: !8, identifier: ".?AUA@@")
!8 = !{!9}
!9 = !DIDerivedType(tag: DW_TAG_member, name: "f", scope: !7, file: !1, line:
2, baseType: !10, size: 32, align: 32)
!10 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
!11 = !{!12}
!12 = !DISubrange(count: 3)
Where it should be:
!6 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 96, align:
32, elements: !11)
--
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/20160625/fb7dae3d/attachment.html>
More information about the llvm-bugs
mailing list