From 3af2a777176e916f830825cae3d2720b13129929 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 22 Jul 2009 21:45:50 +0000 Subject: Fix the parsing of default arguments for inline member function definitions. I'm not very familiar with this code, so please review. llvm-svn: 76796 --- clang/lib/Parse/ParseCXXInlineMethods.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp') diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp index 613e0e33f7b..8afffe3815e 100644 --- a/clang/lib/Parse/ParseCXXInlineMethods.cpp +++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp @@ -29,6 +29,8 @@ Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, Declarator &D) { DeclPtrTy FnD = Actions.ActOnCXXMemberDeclarator(CurScope, AS, D, 0, 0); + HandleMemberFunctionDefaultArgs(D, FnD); + // Consume the tokens and store them for later parsing. getCurrentClass().MethodDefs.push_back(LexedMethod(FnD)); -- cgit v1.2.3