From 45fbfc7f114af637a9e818b37cc596a4685cff0d Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 23 Jul 2012 21:41:30 +0000 Subject: Do not warn about a function decl / direct init ambiguity if the function has a trailing return type. llvm-svn: 160646 --- clang/lib/Parse/ParseTentative.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Parse/ParseTentative.cpp') diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index 41d793f3f29..8cf1c29078c 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -1293,7 +1293,7 @@ bool Parser::isCXXFunctionDeclarator(bool warnIfAmbiguous) { Next.is(tok::kw_throw) || Next.is(tok::kw_noexcept) || Next.is(tok::l_square) || isCXX0XVirtSpecifier(Next) || Next.is(tok::l_brace) || Next.is(tok::kw_try) || - Next.is(tok::equal)) + Next.is(tok::equal) || Next.is(tok::arrow)) // The next token cannot appear after a constructor-style initializer, // and can appear next in a function definition. This must be a function // declarator. -- cgit v1.2.3