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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Fun fact in c++23           |internal compiler error:
                   |                            |tree check: expected tree
                   |                            |that contains 'decl
                   |                            |minimal' structure, have
                   |                            |'error_mark' in
                   |                            |tsubst_expr, at
                   |                            |cp/pt.cc:23238

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jamaika from comment #0)
> Created attachment 66247 [details]
> Error file iterator_interface.test.cpp

You keep claiming to attach a .cpp file, but then you attach a zip file
containing a .ii file and a .s file, that's not the same thing.

> 
> https://github.com/bemanproject/iterator_interface
> When I use C++20, GCC 17 creates an .o file.
> When I use C++23 error occurs.
> 
> In file included from iterator_interface.test.cpp:4:
> beman/iterator_interface/iterator_interface.hpp: In substitution of
> 'template<class D> constexpr auto
> beman::iterator_interface::operator+(typename D::difference_type, D)
> requires requires{it += n;} [with D = long long int]':
> C:/gcc1700/include/c++/17.0.0/bits/iterator_concepts.h:690:8:   required
> from 'constexpr typename std::iterator_traits<_Iterator>::difference_type
> std::distance(_InputIterator, _InputIterator) [with _InputIterator =
> beman::iterator_interface::repeated_chars_iterator; typename
> iterator_traits<_Iterator>::difference_type = long long int]'
>   690 |         { __j +  __n } -> same_as<_Iter>;
>       |           ~~~~^~~~~
> iterator_interface.test.cpp:66:288:   required from here
>    66 |         CONSTEXPR_EXPECT_EQ(std::distance(first, last), 3);
>       |                                                                     
> ^
> beman/iterator_interface/iterator_interface.hpp:74:31: internal compiler
> error: tree check: expected tree that contains 'decl minimal' structure,
> have 'error_mark' in tsubst_expr, at cp/pt.cc:23238
>    74 |     requires requires { it += n; }; // freestanding
>       |                               ^
> C:/gcc1700/bin/../libexec/gcc/x86_64-w64-mingw32/17.0.0/cc1plus.exe
> -fpreprocessed iterator_interface.test.ii -quiet -dumpbase
> iterator_interface.test.cpp -dumpbase-ext .cpp -march=x86-64-v3
> -mtune=generic -mthreads -mavx2 -mbmi -mbmi2 -mlzcnt -mfma -mmovbe -mhle -g0
> -O3 -Wcomment -Wformat=1 -Wshift-negative-value -Wtype-limits
> -Warray-bounds=1 -Wparentheses -Wlogical-not-parentheses -std=gnu++23
> -freport-bug -o iterator_interface.test.s
> Please submit a full bug report, with preprocessed source.
> See <https://gcc.gnu.org/bugs/> for instructions.
> g++.exe: fatal error: cannot execute
> 'C:/gcc1700/bin/../libexec/gcc/x86_64-w64-mingw32/17.0.0/cc1plus.exe': open
> temporary output file: No such file or directory
> compilation terminated.
> 
> Supported Platforms
> Compiler      Version C++ Standards   Standard Library
> GCC   14-13   C++26-C++20     libstdc++
> GCC   12      C++23, C++20    libstdc++
> Clang 23-19   C++26-C++20     libstdc++, libc++
> Clang 18      C++26-C++20     libc++
> Clang 18      C++23, C++20    libstdc++
> Clang 17      C++26-C++20     libc++
> Clang 17      C++20   libstdc++

Reply via email to