This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15317] __attribute__ unused in first parameter of constructor gives error
- From: "mb at apissoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 14:36:21 -0000
- Subject: [Bug c++/15317] __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 mb at apissoft dot com 2004-05-06 14:36 -------
small testcase:
class CommonX25 {
private:
#if defined AIX && !defined AIX43
...
#endif /* AIX */
public:
CommonX25(const char *, const char *, const char *, const char *);
~CommonX25();
};
CommonX25::CommonX25(__attribute__ ((unused)) const char *lName, __attribute__ (
(unused)) const char *rName, __attribute__ ((unused)) const char *source, __attr
ibute__ ((unused)) const char *dest)
{
#if defined AIX && !defined AIX43
...
#else
cerr << "CommonX25 not implemented" << endl;
exit(-1);
#endif
}
compiled with:
g++ -c -o test.o test.cpp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15317