1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 467332 - Disambiguation inside noexcept-specifier

Change-Id: I5bc7378bd050f3c13753dc98970c4e510f53caf5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
Nathan Ridge 2015-12-29 20:06:31 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 2308f972e2
commit f69b77089b
2 changed files with 18 additions and 0 deletions

View file

@ -8980,4 +8980,16 @@ public class AST2TemplateTests extends AST2TestBase {
public void testRecursiveTemplateClass_484786() throws Exception {
parseAndCheckBindings();
}
// template <typename T>
// struct S {
// static const bool value = true;
// };
//
// typedef int Int;
//
// void waldo() noexcept(S<Int>::value) {}
public void testDisambiguationInNoexceptSpecifier_467332() throws Exception {
parseAndCheckBindings();
}
}

View file

@ -314,6 +314,12 @@ public class CPPASTFunctionDeclarator extends CPPASTDeclarator implements ICPPAS
}
}
}
if (child == noexceptExpression) {
other.setPropertyInParent(child.getPropertyInParent());
other.setParent(child.getParent());
noexceptExpression = (ICPPASTExpression) other;
return;
}
assert false;
}