<html>
    <head>
      <base href="http://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 does not emit debug info (definition) for structures"
   href="http://llvm.org/bugs/show_bug.cgi?id=16214">16214</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang does not emit debug info (definition) for structures
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>daniel.malea@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10623" name="attach_10623" title="c++ code to reproduce the missing DWARF structure definition">attachment 10623</a> <a href="attachment.cgi?id=10623&action=edit" title="c++ code to reproduce the missing DWARF structure definition">[details]</a></span>
c++ code to reproduce the missing DWARF structure definition

Ran across this bug in an LLDB test case
(lldb/test/functionalities/data-formatter/rdar-9973865/main.cpp, attached) that
contains a simple structure definition.

To reproduce:
$ clang -g main.cpp && dwarfdump a.out

Expected result:
Dump contains a definition of the structure "Summarize". See attached
dwarf.good.txt file. This was the behaviour in clang in svn r180916.


Actual result:
Dump contains a declaration of "Summarize" but no definition. This prevents
debuggers from examining the members of the structure. See attached
dwarf.bad.txt file. This is the behaviour in clang rTODO, but was present
earlier...


Workaround: adding -fno-limit-debug-info fixes the problem.</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>