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]

Macro does not compile.





The following 'simple' macro does not compile(ver 2.91.66). It compiles on
every other compiler I have tried it on.


#define DECLARE_CLASS(n)                                       \
class MyClass##n                                 \
{                                                              \
public:                                                        \
     MyClass##n (int i);                                       \
     ~MyClass##n (void);                                             \
private:                                                       \
     char *_dum;                                              \
};

DECLARE_CLASS(10)
DECLARE_CLASS(11)



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