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

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


http://bugs.llvm.org/show_bug.cgi?id=32702

            Bug ID: 32702
           Summary: Top level expression evaluation fails with enum in
                    class
           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    }
   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'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170418/8c509f68/attachment.html>


More information about the llvm-bugs mailing list