Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tahasuf at gmail dot com
Target Milestone: ---
Created attachment 48554
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48554&action=edit
gcc 10 don't compile but clang
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95181
--- Comment #1 from ahmet özhan ---
gcc 9.3 compile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95181
--- Comment #2 from ahmet özhan ---
Comment on attachment 48554
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48554
gcc 10 don't compile but clang compile
>#include
>
>namespace math {
>
> template
> requires std::is_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95181
--- Comment #3 from ahmet özhan ---
Comment on attachment 48554
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48554
gcc 10 don't compile but clang compile
>#include
>
>namespace math {
>
> template
> requires std::is_
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tahasuf at gmail dot com
Target Milestone: ---
Clang and GCC 8 can compile the code without any errors. But GCC 9 gives an
error.
#include
#include
#include
namespace
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93275
--- Comment #1 from ahmet özhan ---
: In substitution of 'template
template
> > array_depth_v), std::nullptr_t>::type > constexpr
math::array math::array::operator*(const Other&) const [with Other
= ; typename std::enable_if<(array_depth_v > >
a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93275
--- Comment #2 from ahmet özhan ---
template > array_depth_v),
std::nullptr_t> = nullptr>
constexpr array operator * (const Other& other) const {
array result {};
std::transform(
std::begin(*this),