Skip to content

Commit 2935ff7

Browse files
committed
testsuite: move expected error location
gcc/testsuite/ChangeLog: PR testsuite/97788 * g++.dg/ubsan/pr61272.C: Move expected error location.
1 parent a98ebdc commit 2935ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/testsuite/g++.dg/ubsan/pr61272.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ namespace std
1212
};
1313
namespace __gnu_cxx
1414
{
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 >
1616
{
1717
typedef std::allocator_traits < _Alloc > _Base_type;
18-
using _Base_type::construct;
18+
using _Base_type::construct; // { dg-error "within this context" }
1919
};
2020
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" }
2121
template < typename _Tp, typename _Alloc = std::allocator < _Tp > >class vector : protected _Vector_base < _Tp, _Alloc > { };

0 commit comments

Comments
 (0)