[Bug c++/17786] Duplicate parameter names not diagnosed in declarations.
dberlin at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 1 22:53:00 GMT 2004
------- Additional Comments From dberlin at gcc dot gnu dot org 2004-10-01 22:53 -------
dberlin@linux:~> icpc cpp.cpp
cpp.cpp(3): error: duplicate parameter name
int sum(int x, int x);
^
compilation aborted for cpp.cpp (code 2)
dberlin@linux:~> icpc -V
Intel(R) C++ Compiler for 32-bit applications, Version 8.1 ...
I haven't tried earlier versions of Intel C++, but Comeau's online tester gives
the same results for all the versions they have online.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17786
More information about the Gcc-bugs
mailing list