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

--- Comment #4 from Pilar Latiesa <pilarlatiesa at gmail dot com> ---
(In reply to Jonathan Wakely from comment #1)
> Please provide the output of 'gcc -v' as requested by
> https://gcc.gnu.org/bugs/

Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-linux-gnu
Configured with: ../gcc-trunk-20200114/configure --prefix=/usr
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
--disable-bootstrap --with-abi=m64 --enable-clocale=gnu
--enable-languages=c,c++,fortran --enable-ld=yes --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-linker-build-id --enable-lto
--enable-plugins --enable-threads=posix --enable-libatomic --enable-libcilkrts
--enable-libgomp 
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.0 20200111 (experimental)

(In reply to Jonathan Wakely from comment #2)
> Your testcase is invalid:
> 
> iota.cc: In function 'int main()':
> iota.cc:22:6: error: conflicting declaration 'auto beginTest4'
>    22 | auto beginTest4 = std::ranges::begin(Test5); // OK
>       |      ^~~~~~~~~~
> iota.cc:19:6: note: previous declaration as 'std::ranges::iota_view<long
> unsigned int, long unsigned int>::_Iterator beginTest4'
>    19 | auto beginTest4 = std::ranges::begin(Test4); // Error
>       |      ^~~~~~~~~~

Sorry. I composed the testcase from several pieces but didn't test the whole.

> It compiles for me if I fix that.

Strange. I see the same errors on Compiler Explorer:
https://godbolt.org/z/pcq7fS

Reply via email to