[Bug c++/15317] __attribute__ unused in first parameter of constructor gives error
mb at apissoft dot com
gcc-bugzilla@gcc.gnu.org
Thu May 6 14:36:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list