re PR c++/67926 (Using folding expressions in a constexpr context ice's)
authorPaolo Carlini <paolo@gcc.gnu.org>
Fri, 16 Oct 2015 07:06:11 +0000 (07:06 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 16 Oct 2015 07:06:11 +0000 (07:06 +0000)
commit4856a1f0a1b91d2917ab09b08c55ff4fbf66f94e
treee5f9d064fd5537b6c392002aa14d733c7a665602
parent08a7f38fab6d33c5ddcb86b217267e8864ee6839
re PR c++/67926 (Using folding expressions in a constexpr context ice's)

/cp
2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67926
* constexpr.c (potential_constant_expression_1): Handle
UNARY_LEFT_FOLD_EXPR, UNARY_RIGHT_FOLD_EXPR, BINARY_LEFT_FOLD_EXPR,
BINARY_RIGHT_FOLD_EXPR.

/testsuite
2015-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67926
* g++.dg/cpp1z/fold-ice1.C: New.

From-SVN: r228861
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/fold-ice1.C [new file with mode: 0644]