[Bug other/58241] [PPC/Altivec] altivec.h inclusion in -std=c++98..11 causes bool to be redefined

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 25 21:33:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58241

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You need to use -std=g++11 or undefine bool after the include of altivec.h as
context sensitive keywords is not part of the C++11 standard.

Also it does not make sense to do extern "C" around altivec.h at all since it
uses C++ code.



More information about the Gcc-bugs mailing list