https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >From https://gcc.gnu.org/gcc-4.5/changes.html: Diagnostics that used to complain about passing non-POD types to ... or jumping past the declaration of a non-POD variable now check for triviality rather than PODness, as per C++0x. See PR 37907. And having an example would be useful too. Because of the change between C++98 and C++11.