<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion 'isa<X>(Val) && "cast<Ty>() argument of incompatible type!' on invalid code"
href="http://llvm.org/bugs/show_bug.cgi?id=10631">bug 10631</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>sepavloff@gmail.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 'isa<X>(Val) && "cast<Ty>() argument of incompatible type!' on invalid code"
href="http://llvm.org/bugs/show_bug.cgi?id=10631#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion 'isa<X>(Val) && "cast<Ty>() argument of incompatible type!' on invalid code"
href="http://llvm.org/bugs/show_bug.cgi?id=10631">bug 10631</a>
from <span class="vcard"><a class="email" href="mailto:sepavloff@gmail.com" title="Serge Pavlov <sepavloff@gmail.com>"> <span class="fn">Serge Pavlov</span></a>
</span></b>
<pre>Both examples are compiled now without abort with ToT:
$ clang --version
clang version 3.7.0 (trunk 227734)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang pr10631.cpp
pr10631.cpp:1:10: error: unknown type name 'a'
template<a>struct eval{struct eval{
^
pr10631.cpp:1:31: error: nested redefinition of 'eval'
template<a>struct eval{struct eval{
^
pr10631.cpp:1:19: note: previous definition is here
template<a>struct eval{struct eval{
^
pr10631.cpp:1:36: error: expected ';' after struct
template<a>struct eval{struct eval{
^
;
pr10631.cpp:1:36: error: expected '}'
pr10631.cpp:1:23: note: to match this '{'
template<a>struct eval{struct eval{
^
pr10631.cpp:1:36: error: expected ';' after struct
template<a>struct eval{struct eval{
^
;
5 errors generated.
$ clang pr10613-2.cpp
pr10613-2.cpp:3:3: error: member '__is_byte' has the same name as its class
__is_byte {
^
pr10613-2.cpp:3:13: error: expected '= constant-expression' or end of
enumerator definition
__is_byte {
^
pr10613-2.cpp:5:41: error: expected '}'
template<> struct __is_byte<char> {
^
pr10613-2.cpp:2:14: note: to match this '{'
enum {
^
pr10613-2.cpp:5:41: error: expected ';' after enum
template<> struct __is_byte<char> {
^
;
pr10613-2.cpp:5:41: error: expected '}'
pr10613-2.cpp:1:41: note: to match this '{'
template<typename _Tp> struct __is_byte {
^
pr10613-2.cpp:5:41: error: expected ';' after struct
template<> struct __is_byte<char> {
^
;
6 errors generated.</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>