mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 511186 - Noexcept specifier in type template argument
Change-Id: If0c3299c563829a9b3549f78b346a19e68042456
This commit is contained in:
parent
6a8afa21a6
commit
e7d8ba0ec3
2 changed files with 8 additions and 1 deletions
|
@ -10105,4 +10105,10 @@ public class AST2TemplateTests extends AST2TestBase {
|
|||
public void testDependentDestructorName_511122() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
|
||||
// template <typename> struct Waldo {};
|
||||
// Waldo<void() noexcept> var;
|
||||
public void testNoexceptSpecifierInTypeTemplateArgument_511186() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4633,10 +4633,11 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
if (LT(1) == IToken.tLPAREN) {
|
||||
consume(); // (
|
||||
expression = expression();
|
||||
endOffset = consume(IToken.tRPAREN).getEndOffset(); //)
|
||||
consume(IToken.tRPAREN); //)
|
||||
} else {
|
||||
expression = ICPPASTFunctionDeclarator.NOEXCEPT_DEFAULT;
|
||||
}
|
||||
endOffset = getEndOffset();
|
||||
fc.setNoexceptExpression((ICPPASTExpression) expression);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue