aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r--lib/Parse/ParseDecl.cpp7
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);