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

chithanh at gentoo dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 25 21:46:00 GMT 2013


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

--- Comment #4 from Chí-Thanh Christopher Nguyễn <chithanh at gentoo dot org> ---
The testcase was based on
http://cgit.freedesktop.org/mesa/mesa/plain/src/gallium/state_trackers/clover/core/base.hpp?id=f0cb66b69904b0a3e4083aa8874af63cf1c14321

That header file still fails to compile with -std=c++11 after adding #undef
bool, but now with a different error.

base.hpp:206:26: error: expected type-specifier
base.hpp:206:26: error: expected ‘>’

I will maybe file a separate bug.


More information about the Gcc-bugs mailing list