[Bug libstdc++/104123] New: 29_atomics/headers/stdatomic.h/c_compat.cc fails on AIX

dje at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 19 17:25:57 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104123

            Bug ID: 104123
           Summary: 29_atomics/headers/stdatomic.h/c_compat.cc fails on
                    AIX
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-ibm-aix*

/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/
c_compat.cc:95: error: 'size_t' was not declared in this scope; did you mean
'st
d::size_t'?
/tmp/GCC/powerpc-ibm-aix7.2.3.0/libstdc++-v3/include/stdatomic.h:35: error:
temp
late argument 1 is invalid

/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/
c_compat.cc:95: error: template argument 2 is invalid
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/
c_compat.cc:96: error: 'ptrdiff_t' was not declared in this scope; did you mean 
'std::ptrdiff_t'?

/tmp/GCC/powerpc-ibm-aix7.2.3.0/libstdc++-v3/include/stdatomic.h:35: error:
temp
late argument 1 is invalid
/nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/
c_compat.cc:96: error: template argument 2 is invalid


This probably is an issue that AIX 7.2 headers are not C++-safe.  This will be
fixed in AIX 7.3.

Does this testsuite failure need to be addressed in fixincludes or in the
stdatomic.h header?


More information about the Gcc-bugs mailing list