https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65227
--- Comment #2 from Bert Wesarg <Bert.Wesarg at googlemail dot com> --- (In reply to Andrew Pinski from comment #1) > You should always include gcc-plugin.h first when compiling plugins. But the documentation in gcc/doc/plugins.texi only reads: The header @file{gcc-plugin.h} must be the first gcc header to be included. Thus it does it not required that gcc-plugin.h is the first header at all to be included. And this doesn't changed between GCC 4.9.2 and the GCC 5 snapshot.