File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
gcc/testsuite/g++.dg/ubsan Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ namespace std
12
12
};
13
13
namespace __gnu_cxx
14
14
{
15
- template < typename _Alloc > struct __alloc_traits :std ::allocator_traits < _Alloc > // { dg-error "within this context" }
15
+ template < typename _Alloc > struct __alloc_traits :std ::allocator_traits < _Alloc >
16
16
{
17
17
typedef std ::allocator_traits < _Alloc > _Base_type ;
18
- using _Base_type ::construct ;
18
+ using _Base_type ::construct ; // { dg-error "within this context" }
19
19
};
20
20
template < typename _Tp , typename _Alloc > struct _Vector_base { typedef typename __gnu_cxx ::__alloc_traits < _Alloc > ::template rebind < _Tp > ::other _Tp_alloc_type ; }; // { dg-error "no class template" }
21
21
template < typename _Tp , typename _Alloc = std ::allocator < _Tp > > class vector : protected _Vector_base < _Tp , _Alloc > { };
You can’t perform that action at this time.
0 commit comments