[lldb-dev] [Bug 32702] New: Top level expression evaluation fails with enum in class

via lldb-dev lldb-dev at lists.llvm.org
Tue Apr 18 06:35:13 PDT 2017


            Bug ID: 32702
           Summary: Top level expression evaluation fails with enum in
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: tberghammer at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18309
  --> http://bugs.llvm.org/attachment.cgi?id=18309&action=edit
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    }
   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

Actual result:
error: no type named 'Bar' in 'Foo'

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170418/e6d33fdc/attachment-0001.html>

More information about the lldb-dev mailing list