decl.c (grokparms): Added new error for duplicate function parameters names in functi...
commit0d83bf5afb378b14c59c1dd88561b824c630bc54
authorSimon Baldwin <simonb@google.com>
Mon, 23 Apr 2007 21:48:37 +0000 (23 21:48 +0000)
committerSimon Baldwin <simonb@gcc.gnu.org>
Mon, 23 Apr 2007 21:48:37 +0000 (23 21:48 +0000)
tree4fc1d9e8258125d7d0b0557b043802a87f590779
parent22099c59a2bcec314301e79cac0488274d3f5f36
decl.c (grokparms): Added new error for duplicate function parameters names in function prototypes...

* cp/decl.c (grokparms): Added new error for duplicate function
parameters names in function prototypes, to match gcc behavior.

* testsuite/g++.dg/other/error15.C: New.
* testsuite/g++.dg/cpp0x/variadic-ex9.C: Renamed function parameter to
avoid triggering a "multiple parameters named" error.

From-SVN: r124083
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic-ex9.C
gcc/testsuite/g++.dg/other/error15.C [new file with mode: 0644]