<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Enum class variables can't be used as function arguments"
href="https://bugs.llvm.org/show_bug.cgi?id=39459">bug 39459</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Enum class variables can't be used as function arguments"
href="https://bugs.llvm.org/show_bug.cgi?id=39459#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Enum class variables can't be used as function arguments"
href="https://bugs.llvm.org/show_bug.cgi?id=39459">bug 39459</a>
from <span class="vcard"><a class="email" href="mailto:jdevlieghere@apple.com" title="Jonas Devlieghere <jdevlieghere@apple.com>"> <span class="fn">Jonas Devlieghere</span></a>
</span></b>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>