On Mon, 05 Jan 2026 at 18:03 +0800, Bingzhi wrote:
In GCC 15.2.0, the following code compiles:
template<typename T> concept Can_sizeof = sizeof(T);


I don't know which rule in the ISO C++20, but this code doesn't compile under 
Clang 21.1.5: error: atomic constraint must be
     of type 'bool' (found 'unsigned long').

N.B. this mailing list is for automated emails from the Bugzilla
database, not for reporting bugs.

Please use one of the other mailing lists to discuss developing or
using gcc (<https://gcc.gnu.org/lists.html>), or use Bugzilla to
report bugs (<https://gcc.gnu.org/bugs/>).

Reply via email to