testsuite: move expected error location
authorMartin Liska <mliska@suse.cz>
Fri, 13 Nov 2020 16:38:41 +0000 (17:38 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 13 Nov 2020 16:40:15 +0000 (17:40 +0100)
gcc/testsuite/ChangeLog:

PR testsuite/97788
* g++.dg/ubsan/pr61272.C: Move expected error location.

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

index 11dd1ecb733ad637498a598392390ba7e72c8d22..cb4751e9931c8c33395901342a23b3302c921b8e 100644 (file)
@@ -12,10 +12,10 @@ namespace std
   };
   namespace __gnu_cxx
   {
-    template < typename _Alloc > struct __alloc_traits:std::allocator_traits < _Alloc > // { dg-error "within this context" }
+    template < typename _Alloc > struct __alloc_traits:std::allocator_traits < _Alloc >
     {
       typedef std::allocator_traits < _Alloc > _Base_type;
-      using _Base_type::construct;
+      using _Base_type::construct; // { dg-error "within this context" }
     };
     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" }
     template < typename _Tp, typename _Alloc = std::allocator < _Tp > >class vector : protected _Vector_base < _Tp, _Alloc > { };