<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:asl@math.spbu.ru" title="Anton Korobeynikov <asl@math.spbu.ru>"> <span class="fn">Anton Korobeynikov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes from gcc torture test g++.dg/overload/defrag1.C"
href="http://llvm.org/bugs/show_bug.cgi?id=10759">bug 10759</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>asl@math.spbu.ru
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes from gcc torture test g++.dg/overload/defrag1.C"
href="http://llvm.org/bugs/show_bug.cgi?id=10759#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes from gcc torture test g++.dg/overload/defrag1.C"
href="http://llvm.org/bugs/show_bug.cgi?id=10759">bug 10759</a>
from <span class="vcard"><a class="email" href="mailto:asl@math.spbu.ru" title="Anton Korobeynikov <asl@math.spbu.ru>"> <span class="fn">Anton Korobeynikov</span></a>
</span></b>
<pre>Does not crash for me anymore:
$ clang++ defarg1.C
defarg1.C:4:21: error: call to function 'foo' that is neither visible in the
template definition nor found by argument-dependent lookup
int foo (T t, int = foo(T()));
^
defarg1.C:8:3: note: in instantiation of default function argument expression
for 'foo<int>' required here
foo(0); // { dg-error "default argument" }
^
defarg1.C:4:5: note: 'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
^
1 error 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>