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]

Internal compiler error on wrong used __attribute__ in C++


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





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