This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70824] [6/7 Regression] cc1plus consumes all available memory on specific template code
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 29 May 2016 17:32:49 +0000
- Subject: [Bug c++/70824] [6/7 Regression] cc1plus consumes all available memory on specific template code
- Auto-submitted: auto-generated
- References: <bug-70824-4 at http dot gcc dot gnu dot org/bugzilla/>
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.