FIX: Using Declaration Causes C2327 (167351)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q167351 SYMPTOMS
A using declaration causes the following error:
error C2327: 'B::A::T2' : member from enclosing class is not a type
name, static, or enumerator
CAUSE
The name specified in a using declaration has the same name as an
identifier in the template argument list of a templated class.
RESOLUTION
Modify the name in the using declaration or modify the name of the
identifier in the template argument list (see sample code below).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ .NET.
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbBug kbcode kbfix kbNoUpdate KB167351 |
---|
|