Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc: In function 'int main()':
prog.cc:69:43: in constexpr expansion of 'foo::Constrained<int, foo::GreaterThan<0> >(1)'
prog.cc:50:34: in constexpr expansion of '((foo::Constrained<int, foo::GreaterThan<0> >*)this)->foo::Constrained<int, foo::GreaterThan<0> >::Constrained<const int&>(value, (foo::GreaterThan<0>(), foo::GreaterThan<0>()), (foo::Throws_if_false<>(), foo::Throws_if_false<>()))'
prog.cc:55:34: in constexpr expansion of '((foo::Constrained<int, foo::GreaterThan<0> >*)this)->foo::Constrained<int, foo::GreaterThan<0> >::enforce_constraint(((int)std::forward<const int&>(value)))'
prog.cc:43:21: in constexpr expansion of 'ranges::v3::function_objects::invoke.ranges::v3::invoke_fn::operator()<const foo::Throws_if_false<>&, const foo::GreaterThan<0, std::less<void> >&, int&>(((const foo::Constrained<int, foo::GreaterThan<0> >*)this)->foo::Constrained<int, foo::GreaterThan<0> >::executor(), ((const foo::Constrained<int, foo::GreaterThan<0> >*)this)->foo::Constrained<int, foo::GreaterThan<0> >::predicate(), value)'
prog.cc:69:43: internal compiler error: Segmentation fault
constexpr Positive n [[maybe_unused]] = 1;
^
0xad407f crash_signal
../../source/gcc/toplev.c:337
0x6d0099 reduced_constant_expression_p(tree_node*)
../../source/gcc/cp/constexpr.c:1709
0x6d00f1 reduced_constant_expression_p(tree_node*)
../../source/gcc/cp/constexpr.c:1719
0x6d0184 verify_constant
../../source/gcc/cp/constexpr.c:1742
0x6d5443 cxx_eval_indirect_ref
../../source/gcc/cp/constexpr.c:3161
0x6d5443 cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4146
0x6d503a cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4067
0x6d3d91 cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4209
0x6d1f7f cxx_bind_parameters_in_call
../../source/gcc/cp/constexpr.c:1265
0x6d1f7f cxx_eval_call_expression
../../source/gcc/cp/constexpr.c:1535
0x6d33fd cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4007
0x6d303a cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4124
0x6d303a cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4124
0x6d39e8 cxx_eval_statement_list
../../source/gcc/cp/constexpr.c:3740
0x6d39e8 cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4468
0x6d28f6 cxx_eval_call_expression
../../source/gcc/cp/constexpr.c:1642
0x6d33fd cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4007
0x6d303a cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4124
0x6d303a cxx_eval_constant_expression
../../source/gcc/cp/constexpr.c:4124
0x6d39e8 cxx_eval_statement_list
../../source/gcc/cp/constexpr.c:3740
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Exit Code:
1