https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124119
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Given two errors on:
typedef __SIZE_TYPE__ A;
namespace B {
using ::A;
typedef __SIZE_TYPE__ C;
}
using B::C;
constexpr auto a = ^^A;
constexpr auto b = ^^B::A;
constexpr auto c = ^^B::C;
constexpr auto d = ^^C;
(on ^^B::A and ^^C, note, clang++ errors just on ^^B::A), this depends on
whether
size_t is first declared at global scope and then there is using ::size_t; in
std namespace, or the other way around (which is probably what Solaris does).
Given that I think it is probably a bad idea to test this on size_t or
std::size_t.
Note, this is https://eel.is/c++draft/expr.reflect#5.1