[llvm-bugs] [Bug 39459] Enum class variables can't be used as function arguments

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 7 18:23:20 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=39459

Jonas Devlieghere <jdevlieghere at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Jonas Devlieghere <jdevlieghere at apple.com> ---
Seems like this is fixed.

$ lldb /tmp/a.out
(lldb) target create "/tmp/a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) b /breakpoint/
Breakpoint 1: where = a.out`main + 14 at main.cpp:11:12, address =
0x0000000100000f9e
(lldb) r
Process 37979 launched: '/tmp/a.out' (x86_64)
Process 37979 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x0000000100000f9e a.out`main at main.cpp:11:12
   8
   9    int main() {
   10     Foo foo = Foo::a;
-> 11     auto r = UseFoo(foo); // breakpoint
   12   }
(lldb) p UseFoo(Foo::b)
(bool) $0 = true
(lldb) p UseFoo((Foo)Foo::b)
(bool) $1 = true

-- 
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/20190808/da9d73cd/attachment-0001.html>


More information about the llvm-bugs mailing list