]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix failing tests for AIX
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Aug 2020 15:16:22 +0000 (16:16 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 18:08:00 +0000 (15:08 -0300)
commite417c0659fb82fabe1bd75849caa617f9a3407c0
tree70afd205beef52a85400d20197f22c4d054014df
parent57190b082928638485b0a2f59d72004bf9f59b44
libstdc++: Fix failing tests for AIX

These two tests fail on AIX because <sys/thread.h> defines struct thread
in the global namespace (despite it not being a reserved name). That
means the using-declaration that adds it to the global namespace causes
a redeclaration error.

libstdc++-v3/ChangeLog:

* testsuite/30_threads/thread/cons/84535.cc: Use a custom
namespace.
* testsuite/30_threads/thread/cons/lwg2097.cc: Likewise.
libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc
libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc