<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:vortexilation@gmail.com" title="Aditya Nugraha <vortexilation@gmail.com>"> <span class="fn">Aditya Nugraha</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Working in MSVC but not in CLANG"
href="https://bugs.llvm.org/show_bug.cgi?id=47653">bug 47653</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>INVALID
</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 INVALID - Working in MSVC but not in CLANG"
href="https://bugs.llvm.org/show_bug.cgi?id=47653#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Working in MSVC but not in CLANG"
href="https://bugs.llvm.org/show_bug.cgi?id=47653">bug 47653</a>
from <span class="vcard"><a class="email" href="mailto:vortexilation@gmail.com" title="Aditya Nugraha <vortexilation@gmail.com>"> <span class="fn">Aditya Nugraha</span></a>
</span></b>
<pre>Thanks hstong, i think we can close this report as i am also cannot reproduce
with the following simple case :
------------------------------------------------------
#include <stdio.h>
int add(int x, int y) { return x + y; }
int sub(int x, int y) { return x - y; }
int main() {
int choice;
printf("Enter 1 for add or 0 for sub: ");
scanf("%d", &choice);
// either add or sub will be called with args 1, 2, depending on truth
value of choice,
// i.e., whether choice is non-zero (true) or zero (false).
int result = (choice ? add : sub)(1, 2);
printf("%d\n", result);
return 0;
}
------------------------------------------------------</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>