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:
parent
2308f972e2
commit
f69b77089b
2 changed files with 18 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue