https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104410
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:411db3b4cf8655ecb5b7d666318546c73f2d156b commit r11-9544-g411db3b4cf8655ecb5b7d666318546c73f2d156b Author: Patrick Palka <ppa...@redhat.com> Date: Tue Feb 8 09:11:29 2022 -0500 c++: satisfaction value of type const bool [PR104410] Here constant evaluation of the atomic constraint use_func_v<T> sensibly yields an INTEGER_CST of type const bool, but the assert in satisfaction_value expects unqualified bool. So let's just relax the assert to accept cv-qualified bool. PR c++/104410 gcc/cp/ChangeLog: * constraint.cc (satisfaction_value): Relax assert to accept cv-qualified bool. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/concepts-pr104410.C: New test. (cherry picked from commit 7ff201d85fad11ba6365a5612124b75b385a97bd)