https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69203
Bug ID: 69203 Summary: ICE in potential_constant_expression_1, at cp/constexpr.c:4754 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jamrial at gmail dot com Target Milestone: --- Created attachment 37282 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37282&action=edit Preprocessed source as generated by -freport-bug /home/jamrial/range-v3/include/range/v3/utility/concepts.hpp:509:41: sorry, unimplemented: unexpected AST of kind loop_expr concepts::valid_expr( ~~~~~~~~~~~~~~~~~~~~^ (t.~T(), 42), ~~~~~~~~~~~~~ concepts::is_true(std::is_nothrow_destructible<T>()), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ concepts::has_type<T*>(&t), ~~~~~~~~~~~~~~~~~~~~~~~~~~~ concepts::has_type<const T*>(&std::declval<const T&>()), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (delete p, 42), ~~~~~~~~~~~~~~~ (delete[] p, 42) ~~~~~~~~~~~~~~~~ )); ~ /home/jamrial/range-v3/include/range/v3/utility/concepts.hpp:509:41: internal compiler error: in potential_constant_expression_1, at cp/constexpr.c:4754 0x81ace8 potential_constant_expression_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4754 0x81a04f potential_constant_expression_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4692 0x81a04f potential_constant_expression_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4692 0x81aa81 potential_constant_expression_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4724 0x81a04f potential_constant_expression_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4692 0x81b623 potential_constant_expression(tree_node*) /home/jamrial/gcc-svn/gcc/cp/constexpr.c:4765 0x81b623 maybe_constant_value_1 /home/jamrial/gcc-svn/gcc/cp/constexpr.c:3941 0x81b623 maybe_constant_value(tree_node*, tree_node*) /home/jamrial/gcc-svn/gcc/cp/constexpr.c:3972 0x5da781 build_over_call /home/jamrial/gcc-svn/gcc/cp/call.c:7537 0x5eab81 build_op_call_1 /home/jamrial/gcc-svn/gcc/cp/call.c:4384 0x5eab81 build_op_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) /home/jamrial/gcc-svn/gcc/cp/call.c:4407 0x786378 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) /home/jamrial/gcc-svn/gcc/cp/semantics.c:2430 0x6527a2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/jamrial/gcc-svn/gcc/cp/pt.c:16489 0x655145 tsubst(tree_node*, tree_node*, int, tree_node*) /home/jamrial/gcc-svn/gcc/cp/pt.c:13417 0x665368 tsubst_function_type /home/jamrial/gcc-svn/gcc/cp/pt.c:12481 0x6554d7 tsubst(tree_node*, tree_node*, int, tree_node*) /home/jamrial/gcc-svn/gcc/cp/pt.c:13244 0x65da7c tsubst_decl /home/jamrial/gcc-svn/gcc/cp/pt.c:11692 0x655bde tsubst(tree_node*, tree_node*, int, tree_node*) /home/jamrial/gcc-svn/gcc/cp/pt.c:12697 0x66eeeb instantiate_template_1 /home/jamrial/gcc-svn/gcc/cp/pt.c:17256 0x66eeeb instantiate_template(tree_node*, tree_node*, int) /home/jamrial/gcc-svn/gcc/cp/pt.c:17307