<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </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 - Top level expression evaluation fails with enum in class"
   href="http://bugs.llvm.org/show_bug.cgi?id=32702">32702</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Top level expression evaluation fails with enum in class
          </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>enhancement
          </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@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tberghammer@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18309" name="attach_18309" title="Repro case">attachment 18309</a> <a href="attachment.cgi?id=18309&action=edit" title="Repro case">[details]</a></span>
Repro case

* Compile the attached source code using "clang -g c.cpp"

(lldb) target create a.out
Current executable set to 'a.out' (x86_64).
(lldb) breakpoint set -n main
Breakpoint 1: where = a.out`main + 20 at c.cpp:12, address = 0x0000000100000fa4
(lldb) run
Process 52932 launched: 'a.out' (x86_64)
Process 52932 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000fa4 a.out`main at c.cpp:12
   9    }
   10
   11   int main() {
-> 12     return foo(Foo::Baz);
   13   }
(lldb) expression --top-level -- int bar2(Foo::Bar i) { return 1; }

Expected result:
Top level expression compiles successfully (and can be referenced from later
expressions)

Actual result:
error: no type named 'Bar' in 'Foo'</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>