https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97788

            Bug ID: 97788
           Summary: [11 regression] g++.dg/ubsan/pr61272.C fails after
                    r11-4852
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:05b03452db6a520091aed254d3c399caed714b15, r11-4852

make  -k check-gcc RUNTESTFLAGS="ubsan.exp=g++.dg/ubsan/pr61272.C"

FAIL: g++.dg/ubsan/pr61272.C    (test for errors, line 15)
FAIL: g++.dg/ubsan/pr61272.C   (test for excess errors)

# of expected passes            2
# of unexpected failures        2


spawn -ignore SIGHUP
/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../xg++
-B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C
-fdiagnostics-plain-output -nostdinc++
-I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/libsupc++
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/include/backward
-I/home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0
-fsanitize=undefined -std=c++11 -S -o pr61272.s
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C: In
instantiation of 'struct
std::__gnu_cxx::__alloc_traits<std::allocator<std::__gnu_cxx::Point2d<int> >
>':
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:20:156:  
required from 'struct
std::__gnu_cxx::_Vector_base<std::__gnu_cxx::Point2d<int>,
std::allocator<std::__gnu_cxx::Point2d<int> > >'
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:21:78:  
required from 'class std::__gnu_cxx::vector<std::__gnu_cxx::Point2d<int> >'
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:24:33:  
required from here
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:18:25:
error: 'template<class _Tp> decltype (_S_construct(__a, __p))
std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*) [with _Tp = _Tp; _Alloc
= std::allocator<std::__gnu_cxx::Point2d<int> >]' is private within this
context
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:10:38: note:
declared private here
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C: In
instantiation of 'struct
std::__gnu_cxx::_Vector_base<std::__gnu_cxx::Point2d<int>,
std::allocator<std::__gnu_cxx::Point2d<int> > >':
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:21:78:  
required from 'class std::__gnu_cxx::vector<std::__gnu_cxx::Point2d<int> >'
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:24:33:  
required from here
/home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/ubsan/pr61272.C:20:156:
error: no class template named 'rebind' in 'struct
std::__gnu_cxx::__alloc_traits<std::allocator<std::__gnu_cxx::Point2d<int> > >'
compiler exited with status 1
PASS: g++.dg/ubsan/pr61272.C    (test for warnings, line 10)
FAIL: g++.dg/ubsan/pr61272.C    (test for errors, line 15)
PASS: g++.dg/ubsan/pr61272.C    (test for errors, line 20)

Reply via email to