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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:7ff201d85fad11ba6365a5612124b75b385a97bd

commit r12-7103-g7ff201d85fad11ba6365a5612124b75b385a97bd
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.

Reply via email to