diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-12 23:52:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-12 23:52:44 +0000 |
commit | 9e979557eea3875c9e3d100c68188233dd7f46c0 (patch) | |
tree | 2576060186b3181b93b67c0565e7eb6d79d474e2 /lib/Parse/ParseDecl.cpp | |
parent | 22cb282b29deb9a7b919a339d450d36a3fc205a6 (diff) |
Default argument cleanups and minor improvements, patch by
Doug Gregor!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index e3d6b4f788..7eeb64d578 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -1343,13 +1343,6 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D) { ConsumeToken(); // Parse the default argument - // FIXME: For C++, name lookup from within the default argument - // should be able to find parameter names, but we haven't put them - // in the scope. This means that we will accept ill-formed code - // such as: - // - // int x; - // void f(int x = x) { } ExprResult DefArgResult = ParseAssignmentExpression(); if (DefArgResult.isInvalid) { SkipUntil(tok::comma, tok::r_paren, true, true); |