<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Crash while parsing of invalid template specialization"
href="https://llvm.org/bugs/show_bug.cgi?id=24547">24547</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash while parsing of invalid template specialization
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ismail.pazarbasi@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>// partialspeccrash.cpp
template<typename T>
struct X {
template<typename U>
T *f(U);
};
template<typename T>
template<typename U>
T *X<T>::f<u>(U) {
return nullptr;
}
% clang++ -fsyntax-only -std=c++11 partialspeccrash.cpp
./projects/llvm-tests/partialspeccrash.cpp:11:12: error: use of undeclared
identifier 'u'
T *X<T>::f<u>(U u) {
^
./projects/llvm-tests/partialspeccrash.cpp:11:17: error: expected ')'
T *X<T>::f<u>(U u) {
^
./projects/clang-crasher.cpp:11:14: note: to match this '('
T *X<T>::f<u>(U u) {
^
Assertion failed: (!EnteredScope && "Already entered the scope!"), function
EnterDeclaratorScope, file
/Users/ismailp/Projects/llvm-trunk/llvm/tools/clang/include/clang/Parse/Parser.h,
line 2254.
... [backtrace]
Seems like to be similar to bugs 19340 and 21310, but backtrace is different.</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>