[Bug libstdc++/113160] New: Const valarray (g)slice and indirect_array fail to match valarray in template functions

2023-12-27 Thread yihuajack at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113160 Bug ID: 113160 Summary: Const valarray (g)slice and indirect_array fail to match valarray in template functions Product: gcc Version: 13.2.0 Status: UNCONFIRMED

[Bug libstdc++/113160] Const valarray (g)slice and indirect_array fail to match valarray in template functions

2023-12-27 Thread yihuajack at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113160 --- Comment #2 from Yihua Liu --- It seems that llvm member considers it a bug, see llvm-project Issue #76450.

[Bug libstdc++/113160] Const valarray (g)slice and indirect_array fail to match valarray in template functions

2023-12-30 Thread yihuajack at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113160 --- Comment #5 from Yihua Liu --- I see. Previous cppreference notes were misleading. Is there any plan to support returning a std::valarray or matching a std::valarray? For example, if it returns a std::valarray, it can be directly put in a pip