http://llvm.org/bugs/show_bug.cgi?id=9225
Summary: Cannot compile code
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Following code is accepted by clang 2.8 and gcc-4.4, but rejected by clang
trunk (r125563).
$ cat template.cpp
template<typename Definition>
class AVLTree {
public:
class ConstIterator;
class Iterator {
public:
void Remove()
{
ConstIterator::fTreeIterator.Remove();
}
};
};
$ clang++ template.cpp -c
template.cpp:10:19: error: no member named 'fTreeIterator' in
'AVLTree::ConstIterator'
ConstIterator::fTreeIterator.Remove();
~~~~~~~~~~~~~~~^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs