зеркало из https://github.com/microsoft/clang-1.git
Parser::ParseDeclarationOrFunctionDefinition no longer needs to accept
template parameters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5d36ac2cc9
Коммит
709131972f
|
@ -553,7 +553,6 @@ private:
|
|||
bool isDeclarationAfterDeclarator();
|
||||
bool isStartOfFunctionDefinition();
|
||||
DeclGroupPtrTy ParseDeclarationOrFunctionDefinition(
|
||||
TemplateParameterLists *TemplateParams = 0,
|
||||
AccessSpecifier AS = AS_none);
|
||||
|
||||
DeclPtrTy ParseFunctionDefinition(Declarator &D);
|
||||
|
|
|
@ -477,12 +477,10 @@ bool Parser::isStartOfFunctionDefinition() {
|
|||
/// [OMP] threadprivate-directive [TODO]
|
||||
///
|
||||
Parser::DeclGroupPtrTy
|
||||
Parser::ParseDeclarationOrFunctionDefinition(
|
||||
TemplateParameterLists *TemplateParams,
|
||||
AccessSpecifier AS) {
|
||||
Parser::ParseDeclarationOrFunctionDefinition(AccessSpecifier AS) {
|
||||
// Parse the common declaration-specifiers piece.
|
||||
DeclSpec DS;
|
||||
ParseDeclarationSpecifiers(DS, TemplateParams, AS);
|
||||
ParseDeclarationSpecifiers(DS, 0, AS);
|
||||
|
||||
// C99 6.7.2.3p6: Handle "struct-or-union identifier;", "enum { X };"
|
||||
// declaration-specifiers init-declarator-list[opt] ';'
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
|
||||
// p3
|
||||
template<typename T> int foo(T), bar(T, T); // expected-error{{single entity}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче