PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / anon2.C
blob75285ade3798fb1b6c2b317b6d64f08bd10edade
1 // PR c++/28279
2 // finish_static_data_member_decl was confused by the anonymous
3 // namespace causing TREE_PUBLIC to be unset
5 template<typename T>
6 struct is_pointer_impl {
7     static const bool value = true;
8 };
10 namespace {
11   class prefix_name_mapper {};
14 static const bool val = is_pointer_impl<prefix_name_mapper>::value;