[Bug plugins/65227] Plugin headers are unusable when included after inttypes.h
Bert.Wesarg at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 27 10:22:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65227
--- Comment #4 from Bert Wesarg <Bert.Wesarg at googlemail dot com> ---
(In reply to Richard Biener from comment #3)
> Doumentation bug then. gcc-plugin.h should be the _only_ GCC header to
> include.
>
So inttypes.h is considered a GCC header than? And even if GCC mandates that
gcc-plugin.h should be the first header to include in a compilation unit, how
should this work in a autoconf projects which uses AC_CONFIG_HEADER, because
they also mandate that this header should be the first header to include (from
http://www.gnu.org/software/autoconf/manual/autoconf.html#Configuration-Headers):
The package should ‘#include’ the configuration header file before any other
header files, to prevent inconsistencies in declarations (for example, if it
redefines const).
More information about the Gcc-bugs
mailing list