aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-11-13 17:38:41 +0100
committerMartin Liska <mliska@suse.cz>2020-11-13 17:40:15 +0100
commit2935ff7eb7ac2bb089e61078162d3d68b5745281 (patch)
treebc048a91b86dcdac526382232fc7864ef226a7e5 /gcc
parenta98ebdc50af55bd41a1cc63a723155498339efc9 (diff)
downloadgcc-2935ff7eb7ac2bb089e61078162d3d68b5745281.zip
gcc-2935ff7eb7ac2bb089e61078162d3d68b5745281.tar.gz
gcc-2935ff7eb7ac2bb089e61078162d3d68b5745281.tar.bz2
testsuite: move expected error location
gcc/testsuite/ChangeLog: PR testsuite/97788 * g++.dg/ubsan/pr61272.C: Move expected error location.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/ubsan/pr61272.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/ubsan/pr61272.C b/gcc/testsuite/g++.dg/ubsan/pr61272.C
index 11dd1ec..cb4751e 100644
--- a/gcc/testsuite/g++.dg/ubsan/pr61272.C
+++ b/gcc/testsuite/g++.dg/ubsan/pr61272.C
@@ -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 > { };