<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 --- - LLDB fails to evaluate expressions that dereference a struct when inferior is built with recent Clang"
   href="http://llvm.org/bugs/show_bug.cgi?id=16191">16191</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB fails to evaluate expressions that dereference a struct when inferior is built with recent Clang
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10606" name="attach_10606" title="expression evaluation log (failing) missing struct declaration">attachment 10606</a> <a href="attachment.cgi?id=10606&action=edit" title="expression evaluation log (failing) missing struct declaration">[details]</a></span>
expression evaluation log (failing) missing struct declaration

This issue appears when using ToT Clang to build the LLDB test suite. The
failure is reproducible in Test-rdar-9973865, either with the harness or
manually. To reproduce with the test, do:

python dotest --executable <path-to-lldb> -p Test-rdar-9973865

To reproduce manually:

cd <lldb-dir>/test/functionalities/data-formatter/rdar-9973865
make CC=/path/to/recent/clang
lldb ./a.out
(lldb) b 27
(lldb) run
(lldb) print *mine_ptr

Expected result: lldb prints contents of the struct.

Actual result:

error: incomplete type 'summarize_t' (aka 'Summarize') where a complete type is
required
note: forward declaration of 'Summarize'
error: 1 errors parsing expression


However, the 'summarize_t' type is declared in the main.cpp file, but LLDB
doesn't seem to pass this declaration on to Clang. Not sure if this is really
an LLDB bug, or an Clang bug.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>