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] __attribute__ unused in first parameter of constructor gives error


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


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