1 /* At one time this triggered ICEs with location wrapper nodes,
2 apparently requiring error-recovery (hence the various syntax
3 errors in this file. */
5 // { dg-excess-errors "expected to be full of errors, but not an ICE" }
9 inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { }
11 namespace __gnu_cxx __attribute__ ((__visibility__ ("default")))
13 template<typename _Tp>
16 typedef _Tp value_type;
21 template<typename _Tp>
22 using __allocator_base = __gnu_cxx::new_allocator<_Tp>;
24 namespace std __attribute__ ((__visibility__ ("default")))
28 template<typename _Tp>
29 class allocator : public __allocator_base<_Tp>
32 template<typename _Alloc>
33 struct allocator_traits : __allocator_traits_base
36 template<typename _Tp>
37 struct allocator_traits<allocator<_Tp>>
39 using allocator_type = allocator<_Tp>;
40 template<typename _Up>
41 using rebind_alloc = allocator<_Up>;
42 allocate(allocator_type& __a, size_type __n)
45 namespace __gnu_cxx __attribute__ ((__visibility__ ("default")))
47 template<typename _Alloc, typename = typename _Alloc::value_type>
49 : std::allocator_traits<_Alloc>
51 typedef std::allocator_traits<_Alloc> _Base_type;
52 template<typename _Tp>
54 { typedef typename _Base_type::template rebind_alloc<_Tp> other; };
65 namespace std __attribute__ ((__visibility__ ("default")))
69 template<typename _CharT, typename _Traits = char_traits<_CharT>,
70 typename _Alloc = allocator<_CharT> >
74 namespace std __attribute__ ((__visibility__ ("default")))
77 template<typename _CharT, typename _Traits, typename _Alloc>
80 typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template
81 rebind<_CharT>::other _Char_alloc_type;
82 typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits;
88 operator=(const basic_string& __str)
93 const auto __len = __str.size();
94 auto __alloc = __str._M_get_allocator();
95 auto __ptr = _Alloc_traits::allocate(__alloc, __len + 1);
102 size() const noexcept
108 typedef char value_type;
109 typedef std::basic_string<value_type> string_type;
112 string_type _M_pathname;
114 class directory_entry
116 void assign(const filesystem::path& __p) { _M_path = __p; }
117 filesystem::path _M_path;