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

            Bug ID: 58241
           Summary: [PPC/Altivec] altivec.h inclusion in -std=c++98..11
                    causes bool to be redefined
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chithanh at gentoo dot org

Created attachment 30696
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30696&action=edit
testcase

Originally reported as https://bugs.freedesktop.org/show_bug.cgi?id=68504

Compiling attached testcase with g++ -maltivec -std=c++11 fails with the
following error:

fdo_68504.cpp: In function ‘__vector(4) __bool int returnbool()’:
fdo_68504.cpp:11:21: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’
in return

Building with -std=gnu++11 does not fail.

It appears that bool is redefined by altivec.h to
__attribute__((altivec(bool__))) unsigned in c++11 mode.

Reply via email to