This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error on wrong used __attribute__ in C++
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error on wrong used __attribute__ in C++
- From: Aurel Balmosan <ab at orga dot com>
- Date: Tue, 27 Oct 1998 17:28:57 +0100
- Organization: ORGA Kartensysteme GmbH
Hello,
I get an internal compiler error when I do following:
class ESIfilterSysErr: public ESIfilterException {
public:
char *func;
char *info;
int errno;
ESIfilterSysErr(int errno, const char *func, char *info_fmt ...); //
This is the error. There should be no ;
#ifdef __GNUC__
__attribute__ ((format (printf, 4, 5)));
#else
;
#endif
~ESIfilterSysErr();
};
I use following EGCS
gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
Also I noticed that I must add the implicit *this parameter for __attribute_
parameter numbering
otherwise I get a warning.
Bye,
Aurel.
--
Aurel Balmosan | Department SE-SW
ORGA Kartensysteme GmbH | phone: +49 5254 991 824
An der Kapelle 2 | fax : +49 5254 991 749
33104 Paderborn, Germany | mailto:ab@orga.com