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));