/* At one time this triggered ICEs with location wrapper nodes, apparently requiring error-recovery (hence the various syntax errors in this file. */ // { dg-excess-errors "expected to be full of errors, but not an ICE" } namespace std { inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template class new_allocator { typedef _Tp value_type; }; } namespace std { template using __allocator_base = __gnu_cxx::new_allocator<_Tp>; } namespace std __attribute__ ((__visibility__ ("default"))) { { }; template class allocator : public __allocator_base<_Tp> { }; template struct allocator_traits : __allocator_traits_base { }; template struct allocator_traits> { using allocator_type = allocator<_Tp>; template using rebind_alloc = allocator<_Up>; allocate(allocator_type& __a, size_type __n) }; } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template struct __alloc_traits : std::allocator_traits<_Alloc> { typedef std::allocator_traits<_Alloc> _Base_type; template struct rebind { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; }; { { } } } { { } } namespace std __attribute__ ((__visibility__ ("default"))) { struct char_traits; namespace __cxx11 { template, typename _Alloc = allocator<_CharT> > class basic_string; } } namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { template class basic_string { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_CharT>::other _Char_alloc_type; typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; public: { { } } operator=(const basic_string& __str) { { { { const auto __len = __str.size(); auto __alloc = __str._M_get_allocator(); auto __ptr = _Alloc_traits::allocate(__alloc, __len + 1); } } } } { } size() const noexcept } namespace filesystem { class path { typedef char value_type; typedef std::basic_string string_type; { } string_type _M_pathname; }; class directory_entry { void assign(const filesystem::path& __p) { _M_path = __p; } filesystem::path _M_path;