diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-12 16:51:40 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-12 16:51:40 +0000 |
commit | 5e300d1a8e37f24e71f8cf204b982f20f85cf91a (patch) | |
tree | 4ecedfd5067b9578a835d6f0ccb3df0c7bf9b463 /include/clang/Parse/Action.h | |
parent | 859ba504e754436e1ccf81f50800e5d2ea647447 (diff) |
It's an error to use a function declared in a class definition as a default argument before the function has been declared.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Action.h')
-rw-r--r-- | include/clang/Parse/Action.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 579fe6cb03..813b5974e3 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -916,7 +916,8 @@ public: /// because we're inside a class definition. Note that this default /// argument will be parsed later. virtual void ActOnParamUnparsedDefaultArgument(DeclPtrTy param, - SourceLocation EqualLoc) { } + SourceLocation EqualLoc, + SourceLocation ArgLoc) { } /// ActOnParamDefaultArgumentError - Parsing or semantic analysis of /// the default argument for the parameter param failed. |