<html>
<head>
<base href="http://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 --- - -fdelayed-template-parsing vs. out-of-line definition of inner class method"
href="http://llvm.org/bugs/show_bug.cgi?id=19613">19613</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fdelayed-template-parsing vs. out-of-line definition of inner class method
</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>Windows NT
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Blocks</th>
<td>18887
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The following code fails to compile with -fdelayed-template-parsing:
struct HeapTypeConfig {
static void from_bitset();
};
template <class Config>
struct TypeImpl {
struct BitsetType;
static void Any() {
BitsetType::New();
}
};
template<class Config>
struct TypeImpl<Config>::BitsetType {
static void New() {
Config::from_bitset();
}
};
/tmp/a.cc:17:5: error: use of undeclared identifier 'Config'
Config::from_bitset();
^
/tmp/a.cc:22:29: note: in instantiation of member function
'TypeImpl<HeapTypeConfig>::Any' requested here
TypeImpl<HeapTypeConfig>::Any();
^</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>