summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-12 23:52:44 +0000
committerChris Lattner <sabre@nondot.org>2008-04-12 23:52:44 +0000
commitb0d3844fb815a187880fbb735ad2960e3ce99630 (patch)
treee2c02b3345675e0a63a4da44de04da377687eeb9 /clang/lib/Parse/ParseDecl.cpp
parentb9f38f38fa06317ade6b29ad1e86a2ed86eac672 (diff)
downloadbcm5719-llvm-b0d3844fb815a187880fbb735ad2960e3ce99630.tar.gz
bcm5719-llvm-b0d3844fb815a187880fbb735ad2960e3ce99630.zip
Default argument cleanups and minor improvements, patch by
Doug Gregor! llvm-svn: 49598
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index e3d6b4f788b..7eeb64d578b 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud