Internal compiler error on wrong used __attribute__ in C++

Aurel Balmosan ab@orga.com
Tue Oct 27 08:56:00 GMT 1998


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






More information about the Gcc-bugs mailing list