This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15317] [3.4/3.5 Regression] __attribute__ unused in first parameter of constructor gives error
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 14:44:52 -0000
- Subject: [Bug c++/15317] [3.4/3.5 Regression] __attribute__ unused in first parameter of constructor gives error
- References: <20040506141451.15317.mb@apissoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 14:44 -------
A work around is to place the attribute after the variable name but this works only on 3.4.0 and above:
struct A
{
A(char);
};
A::A(char i2 __attribute__((unused)))
{}
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15317