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

            Bug ID: 105722
           Summary: [10 regression] std/ranges/adaptors/elements.cc fails
                    after r10-10724-g93ec7bf2253061
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:93ec7bf22530610ef697fd3a64a28bebd589c790, r10-10724-g93ec7bf2253061

spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-10-test/./gcc/xg++
-shared-libgcc -B/home/seurer/gcc/git/build/gcc-10-test/./gcc -nostdinc++
-L/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/src
-L/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/home/seurer/gcc/git/install/gcc-10-test/powerpc64le-unknown-linux-gnu/bin/
-B/home//seurer/gcc/git/install/gcc-10-test/powerpc64le-unknown-linux-gnu/lib/
-isystem
/home/seurer/gcc/git/install/gcc-10-test/powerpc64le-unknown-linux-gnu/include
-isystem
/home/seurer/gcc/git/install/gcc-10-test/powerpc64le-unknown-linux-gnu/sys-include
-fchecking=1
-B/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/./libstdc++-v3/src/.libs
-fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu
-I/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include
-I/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/libsupc++
-I/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/include/backward
-I/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/testsuite/util
/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/testsuite/std/ranges/adaptors/elements.cc
-std=gnu++2a -fno-diagnostics-show-caret -fdiagnostics-color=never
-fdiagnostics-urls=never ./libtestc++.a -Wl,--gc-sections
-L/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/filesystem/.libs
-lm -o ./elements.exe^M
In file included from
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_algobase.h:38,^M
                 from
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/ranges_algo.h:35,^M
                 from
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/algorithm:64,^M
                 from
/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/testsuite/std/ranges/adaptors/elements.cc:21:^M
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/ranges:
In instantiation of 'struct
std::ranges::transform_view<std::ranges::ref_view<std::vector<int> >,
test05()::<lambda(auto:17)> >::_Iterator<false>':^M
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/iterator_concepts.h:918:
  required from 'constexpr auto
std::ranges::__cust_access::_Begin::operator()(_Tp&&) const [with _Tp =
std::ranges::transform_view<std::ranges::ref_view<std::vector<int> >,
test05()::<lambda(auto:17)> >&]'^M
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/range_access.h:874:
  required from 'constexpr auto
std::ranges::views::__adaptor::operator|(_Range&&, const
std::ranges::views::__adaptor::_RangeAdaptorClosure<_Callable>&) [with _Range =
std::ranges::transform_view<std::ranges::ref_view<std::vector<int> >,
test05()::<lambda(auto:17)> >; _Callable = <lambda(_Range&&)>]'^M
/home/seurer/gcc/git/gcc-10-test/libstdc++-v3/testsuite/std/ranges/adaptors/elements.cc:102:
  required from here^M
/home/seurer/gcc/git/build/gcc-10-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/ranges:1829:
internal compiler error: canonical types differ for identical types 'auto' and
'auto'^M


commit 93ec7bf22530610ef697fd3a64a28bebd589c790 (HEAD)
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Apr 26 00:19:40 2022 -0400

    c++: pack init-capture of unresolved overload [PR102629]

Reply via email to