<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clang didn't emit the right debug information for vla a[3][m]"
   href="https://llvm.org/bugs/show_bug.cgi?id=29086">29086</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang didn't emit the right debug information for vla a[3][m]
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>qshanz@cn.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre><span class="quote">> cat a.C</span >
int m;

int main() {
int a[3][m];
return a[0][0];
}

<span class="quote">> clang++ a.C -g -S -emit-llvm
> cat a.ll</span >
 call void @llvm.dbg.declare(metadata i32* %7, metadata !14, metadata !18),
!dbg !19
!14 = !DILocalVariable(name: "a", scope: !9, file: !1, line: 4, type: !15)
!15 = !DICompositeType(tag: DW_TAG_array_type, baseType: !5, align: 32,
elements: !16)
!16 = !{!17, !17}
!17 = !DISubrange(count: -1)
<span class="quote">> clang -v</span >
clang version 4.0.0 (trunk)

Note that, clang emit both two subrange as "-1" which is not right. It should
be "3" and "-1".</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>