http://llvm.org/bugs/show_bug.cgi?id=16293
Bug ID: 16293
Summary: class template friend declarations raise an error
where EDG and g++ don't
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
consider the following:
template <typename T>
class Foo {
class Nested {
};
};
template <typename T>
class A {
template <typename> friend class Foo<T>::Nested;
};
clang claims: "redefinition of 'Nested' as different kind of symbol" and points
to the friend decl...
g++ and EDG has no issue with it.
--
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