<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sharparrow1@yahoo.com" title="Eli Friedman <sharparrow1@yahoo.com>"> <span class="fn">Eli Friedman</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: isInt() && "Invalid accessor", file C:\work\llvm\tools\clang\include\clang/AST/APValue.h, line 195"
href="http://llvm.org/bugs/show_bug.cgi?id=17330">bug 17330</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>sharparrow1@yahoo.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: isInt() && "Invalid accessor", file C:\work\llvm\tools\clang\include\clang/AST/APValue.h, line 195"
href="http://llvm.org/bugs/show_bug.cgi?id=17330#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: isInt() && "Invalid accessor", file C:\work\llvm\tools\clang\include\clang/AST/APValue.h, line 195"
href="http://llvm.org/bugs/show_bug.cgi?id=17330">bug 17330</a>
from <span class="vcard"><a class="email" href="mailto:sharparrow1@yahoo.com" title="Eli Friedman <sharparrow1@yahoo.com>"> <span class="fn">Eli Friedman</span></a>
</span></b>
<pre>On trunk, I get one of the following, depending on the target/dialect:
<stdin>:10:3: error: cast from pointer to smaller type 'unsigned int' loses
information
x<(unsigned)&f> a;
^~~~~~~~~~~~
1 error generated.
<stdin>:10:3: error: non-type template argument is not a constant expression
x<(unsigned)&f> a;
^~~~~~~~~~~~
<stdin>:10:3: note: cast that performs the conversions of a reinterpret_cast is
not allowed in a constant expression</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>