This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15317] [3.4/3.5 Regression] __attribute__ unused in first parameter of constructor gives error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]