commit | 285a3e47becb1c7b50afc04895a6a1eb5ca265ea | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Apr 06 06:50:56 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Apr 06 06:50:56 2008 +0000 |
tree | d67eeacb2a49b65a1aacf925c2bbdeb41d02cbd3 | |
parent | 67b450cb4841ab1c0dcb36a3fcc331d6d694c6be [diff] [blame] |
reject 'int test(x, x) int x; {}' llvm-svn: 49271
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index cae0cbb..0cf97d2 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1400,6 +1400,7 @@ // Tok is known to be the first identifier in the list. Remember this // identifier in ParamInfo. + ParamsSoFar.insert(Tok.getIdentifierInfo()); ParamInfo.push_back(DeclaratorChunk::ParamInfo(Tok.getIdentifierInfo(), Tok.getLocation(), 0));