[Bug c++/87441] [concepts] Found compiler internal error: in tsubst at cp/pt.c:13657

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 12 08:32:00 GMT 2018


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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is enough:

template<typename X, typename Y = X>
concept bool HasBinaryAdd = requires(X x, Y y)
{
  {x + y} -> decltype(x + y);
};

void proc(HasBinaryAdd x, HasBinaryAdd y);


More information about the Gcc-bugs mailing list