g++ doesn't like "major" & "minor" as class variable names.

Paolo Carlini pcarlini@unitus.it
Thu Feb 21 17:31:00 GMT 2002


> As far as I can tell neither "major" nor "minor" are keywords.

They are not gcc reserved names, but *glibc* reserved names!
Indeed, try reducing your testcase to something not including <iostream> and the
problem will go away, since <iostreams> ends up including
/usr/include/sys/sysmacros.h which defines the macros "major" and "minor".

Ciao, Paolo.




More information about the Gcc-bugs mailing list