https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70824
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-05-29 Ever confirmed|0 |1 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- At some point cxx_eval_constant_expression under case VAR_DECL calls decl_constant_value with a t like: <var_decl 0x7ffff6db6000 ._0 type <array_type 0x7ffff6db0888 type <integer_type 0x7ffff6d9c2a0 int readonly type_6 SI and the call never returns. Each unshare_expr at the end of constant_value_1 certainly allocates memory.