https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117855
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |15.0 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With GCC 14.2.0 (with checking==release) with my reduced testcase: ``` <source>:9:15: error: class template argument deduction failed: 9 | this_span a = vec; | ^~~ <source>:9:15: error: call of overloaded 'this_span(int&)' is ambiguous <source>:2:23: note: candidate: 'this_span(T&&)-> this_span<T> [with T = int&]' 2 | template <typename T> span(T &&) -> span<T>; | ^~~~ <source>:1:55: note: candidate: 'this_span(et&&)-> this_span<et, e> [with et = int&; int e = -1]' 1 | template <typename T, int _Extent = -1> struct span { span(T&&);}; | ^~~~ <source>:7:23: note: candidate: 'this_span(T&&)-> this_span<T> [with T = int&]' 7 | template <typename T> this_span(T &&) -> this_span<T>; | ^~~~~~~~~ ``` With the trunk we checking ICE: ``` <source>:2:23: internal compiler error: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst, at cp/pt.cc:16533 2 | template <typename T> span(T &&) -> span<T>; | ^~~~ ```