On Fri, Jan 28, 2011 at 08:11:20AM -0800, Garrett Holmstrom wrote: > On 1/28/2011 0:11, Jakub Jelinek wrote: > > Care to share details? Of course there were many changes in the C++ FE, > > especially for C++0x, and maybe some warnings changed into errors, but > > nothing I'd describe as a lot. We haven't still written > > http://gcc.gnu.org/gcc-4.6/porting_to.html so if you have interesting > > info about changes that affect a lot of packages, details would be certainly > > welcome. The STL changes not to include<cstddef> internally is certainly > > one thing that will be added there. > > If it helps anyone, the most pervasive problem I have seen is code that > assumes that NULL is part of the C++ language rather than the C++ > standard library, and thus fails to include cstdlib. This can result in > compilation failure because NULL is never defined. That's exactly the same issue as above, NULL is defined by both cstdlib and cstddef (and several other headers), in many of the standard C++ headers it used to be included because it needed internally std::size_t and std::ptrdiff_t definitions only. I think similar issues can be with code that expects to see e.g. ::size_t definition when including just the non-<c*> standard C++ headers, while only std::size_t will be defined. Jakub -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel