re PR c++/88977 (__builtin_is_constant_evaluated() as function template argument...
authorJakub Jelinek <jakub@redhat.com>
Mon, 11 Feb 2019 20:00:16 +0000 (21:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 11 Feb 2019 20:00:16 +0000 (21:00 +0100)
commit75c5639de1dba21290c3a88c440963c3c14fa827
tree75765fce9c8b58953919291f69768bea2457c54e
parentf9fb2d275ec5137b514167dd96c2f591e6f3658f
re PR c++/88977 (__builtin_is_constant_evaluated() as function template argument causes substitution failure)

PR c++/88977
* pt.c (convert_nontype_argument): Pass true as manifestly_const_eval
to maybe_constant_value calls.

* g++.dg/cpp2a/is-constant-evaluated7.C: New test.

From-SVN: r268780
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/is-constant-evaluated7.C [new file with mode: 0644]