libstdc++: Rename test type to avoid clashing with std::any
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 May 2021 12:57:49 +0000 (13:57 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 10 May 2021 14:00:06 +0000 (15:00 +0100)
commit2bbacc18b35e44d45676a46eced26129f8f8378a
treea7aa61ecde6684f00aaa19b9a7a02d7868740174
parent0fd1a54ba32df4316ea920e9877c66f79605df50
libstdc++: Rename test type to avoid clashing with std::any

When PCH are enabled this test file includes <any> and so the
using-directive brings std::any into the global scope. It isn't
currently a problem, because the -std option in the dg-options means
that PCH is not used. If that option is removed, the test fails with PCH
and passes without.

This just renames the type to avoid the name classh (and also the 'none'
type for consistency).

libstdc++-v3/ChangeLog:

* testsuite/20_util/variant/compile.cc: Rename 'any' to avoid
clash with std::any.
libstdc++-v3/testsuite/20_util/variant/compile.cc