This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67926] Using folding expressions in a constexpr context ice's
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Oct 2015 07:06:43 +0000
- Subject: [Bug c++/67926] Using folding expressions in a constexpr context ice's
- Auto-submitted: auto-generated
- References: <bug-67926-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67926
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Oct 16 07:06:11 2015
New Revision: 228861
URL: https://gcc.gnu.org/viewcvs?rev=228861&root=gcc&view=rev
Log:
/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.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/fold-ice1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog