http://llvm.org/bugs/show_bug.cgi?id=16048
Bug ID: 16048
Summary: friend declaration with qualified name fails to find
class template made visible by using-directive
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
namespace N1
{
struct Ok { };
template<class T>
struct NotOk { };
}
namespace N2
{
using namespace N1;
}
struct B
{
friend struct N2::Ok;
template<class T>
friend struct N2::NotOk;
};
t.cc:19:23: error: friend declaration of 'NotOk' does not match any declaration
in namespace 'N2'
friend struct N2::NotOk;
~~~~^
1 error generated.
It works for a non-template (as shown) and also if the names are introduced
into N2 with using-declarations.
--
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