[Bug c++/14573] [3.3 Regression] -Wunused-parameter does not warn unused parameter in ctor
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 14 21:08:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-14 21:08 -------
I have not tested a newer 3.3.x yet.
Here is the corrected testcase which should warn about i also but only warns about j:
class C {
public:
C(int i) {}
void f(int j) {}
};
C c(0);
void t()
{
c.f(0);
}
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Known to fail| |3.0.4 3.3.1 3.2.3 3.2.2
Known to work| |2.95.3 3.4.0 3.5.0
Summary|-Wunused-parameter does not |[3.3 Regression] -Wunused-
|warn unused parameter in |parameter does not warn
|ctor |unused parameter in ctor
Target Milestone|--- |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14573
More information about the Gcc-bugs
mailing list