https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67926
Bug ID: 67926 Summary: Using folding expressions in a constexpr context ice's Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc at magfr dot user.lysator.liu.se Target Milestone: --- Trying to compile the following results in an ICE. $ cat z1.ii template <bool ... T> concept bool C = (T && ...); $ /usr/local/gcc-head/bin/g++ --version g++ (GCC) 6.0.0 20151010 (experimental) $ /usr/local/gcc-head/bin/g++ -std=c++1z -x c++ z1.ii z1.ii:1:49: sorry, unimplemented: unexpected AST of kind unary_right_fold_expr template <bool ... T> concept bool C = (T && ...); ^ z1.ii:1:49: internal compiler error: in potential_constant_expression_1, at cp/constexpr.c:4629