mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 416788 - [regression] "Member declaration not found" for member of
template specialization Change-Id: I388ea1f7dc6ff2bf315958960a113e9110acd9c8 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/16207 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
6856d55b68
commit
6631c857b9
2 changed files with 21 additions and 1 deletions
|
@ -8076,4 +8076,24 @@ public class AST2TemplateTests extends AST2TestBase {
|
|||
helper.assertNonProblem("decltype(foo(T()))::type");
|
||||
assertSameType((ITypedef) helper.assertNonProblem("U<S>::type"), CommonTypes.int_);
|
||||
}
|
||||
|
||||
// namespace N {
|
||||
// template <typename>
|
||||
// struct C;
|
||||
//
|
||||
// template <typename T>
|
||||
// struct C<T*> {
|
||||
// C();
|
||||
// void waldo();
|
||||
// };
|
||||
//
|
||||
// template <typename T>
|
||||
// C<T*>::C() {}
|
||||
//
|
||||
// template <typename T>
|
||||
// void C<T*>::waldo() {}
|
||||
// }
|
||||
public void testMemberOfPartialSpecialization_416788() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ public class CPPNamespaceScope extends CPPScope implements ICPPInternalNamespace
|
|||
IScope scope= this;
|
||||
ICPPASTNameSpecifier[] segments= name.getQualifier();
|
||||
try {
|
||||
for (int i= segments.length - 1; --i >= 0;) {
|
||||
for (int i= segments.length; --i >= 0;) {
|
||||
if (scope == null)
|
||||
return false;
|
||||
IName scopeName = scope.getScopeName();
|
||||
|
|
Loading…
Add table
Reference in a new issue