This is the mail archive of the gcc@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]

Re: stddef.h, [C++] wchar_t vs size_t


As brent says, wchar_t is supposed to be a keyword in C++, so it
should not be defined in the header.  We used to fudge that a bit in
g++ so that headers which do define it would still compile; apparently
some of that support has since been removed, without actually doing
away with the __wchar_t hack.

The short answer is, everything in init_decl_processing needs to be
updated to put things in std:: rather than the global namespace when
-fhonor-std.

Jason

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